Minimal example utilizing fastapi and celery with RabbitMQ for task queue, Redis for celery backend and flower for monitoring the celery tasks.
Minimal example utilizing FastAPI and Celery with RabbitMQ for task queue, Redis for Celery backend and flower for monitoring the Celery tasks.
docker-compose up
to start up the RabbitMQ, Redis, flower and our application/worker instances.The RabbitMQ, Redis and flower services can be started with
docker-compose -f docker-compose-services.yml up
Execute the following command: poetry install --dev
poetry run hypercorn app/main:app --reload
.poetry run celery worker -A app.worker.celery_worker -l info -Q test-queue -c 1