GithubHelp home page GithubHelp logo

Comments (4)

euri10 avatar euri10 commented on August 10, 2024 2

from full-stack-fastapi-template.

JennyCGT avatar JennyCGT commented on August 10, 2024 1

Hello @tiangolo Can you give me a piece of advice. I am trying to create a dynamic task scheduling system using FastAPI. On Django, before I have used 'django-celery-beats' in order to update dynamically task. There is any similar package for FastAPI. I really appreciate your help, I am new on FastAPI.

from full-stack-fastapi-template.

duz-sg avatar duz-sg commented on August 10, 2024

It's not correct imho, you'd need a beat and a worker container. You can look at a working example here: https://gitlab.com/euri10/euri10_fastapi_base/tree/master/docker-compose-dev.yml Le mer. 31 juil. 2019 à 9:21 PM, Du Zheng [email protected] a écrit :

I'm trying to use the celery beat service to start some scheduled tasks, and publish these tasks into a different queue, so I can have a different type of worker to consume the tasks. My current approach is to use the similar way of starting normal worker in dockerfile, however, seems I can only start the beat service, none of my workers started. COPY ./app/worker-start.sh /worker-start.sh RUN chmod +x /worker-start.sh CMD ["bash", "/worker-start.sh"] COPY ./app/checker-start.sh /checker-start.sh RUN chmod +x /checker-start.sh CMD ["bash", "/checker-start.sh"] COPY ./app/beat-start.sh /beat-start.sh RUN chmod +x /beat-start.sh CMD ["bash", "/beat-start.sh"] Is this the correct way of starting a new type of worker along with beat in docker? Any comment is appreciated. Thanks. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#46?email_source=notifications&email_token=AAINSPU43XYTR73RDMJPN6DQCHX6HA5CNFSM4IIKHH22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HCVDFZA>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAINSPUDJQ5IUU27IK7ORWDQCHX6HANCNFSM4IIKHH2Q .

Cool, will look into it. Thanks!

from full-stack-fastapi-template.

tiangolo avatar tiangolo commented on August 10, 2024

Thanks for the help @euri10 ! 🎉

And thanks @duz-sg for reporting back and closing the issue ✔️

from full-stack-fastapi-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.