Comments (4)
from full-stack-fastapi-template.
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.
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.
Thanks for the help @euri10 ! 🎉
And thanks @duz-sg for reporting back and closing the issue ✔️
from full-stack-fastapi-template.
Related Issues (20)
- How to start the backend server without using docker?
- FASTAPI
- 🐛 Error in frontend when resetting a password: "The passwords do not match" HOT 1
- Sorry, please ignore.
- backend not working HOT 1
- Titel: "Implementiere AutoGen Base Agent"
- when i adding the background table this happened.
- Why React, not Vue?
- Mac M1 Docker error HOT 6
- Bad Gateway returned HOT 5
- [Improvement] Replace Prettier and Eslint with Biome and add pre-commit hooks HOT 1
- Feature Request: Support for GitHub Codespaces Deployment and Development HOT 2
- Login error in Dashboard HOT 5
- Secrets should not be versioned by default HOT 3
- Enable discussion on this repo? HOT 1
- Support the use of dev containers for reproducible dev environment HOT 1
- Embracing Technological Evolution: A Journey Toward Innovation
- Debug Launch Configuration for "Debug Frontend: (...)" does not work on WSL
- Z
- Running task 1 of 1: python .copier/update_dotenv.py /bin/sh: 1: python: not found HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-stack-fastapi-template.