gil2abir / fastapi-celery

Example of how to handle background processes with FastAPI, Celery, and Docker

Repository from Github https://github.comgil2abir/fastapi-celeryRepository from Github https://github.comgil2abir/fastapi-celery

Asynchronous Tasks with FastAPI and Celery

Example of how to handle background processes with FastAPI, Celery, and Docker.

Want to learn how to build this?

Check out the post.

Want to use this project?

Spin up the containers:

$ docker-compose up -d --build

Open your browser to http://localhost:8004 to view the app or to http://localhost:5556 to view the Flower dashboard.

Trigger a new task:

$ curl http://localhost:8004/tasks -H "Content-Type: application/json" --data '{"type": 0}'

Check the status:

$ curl http://localhost:8004/tasks/<TASK_ID>

About

Example of how to handle background processes with FastAPI, Celery, and Docker

License:MIT License


Languages

Language:Python 44.4%Language:HTML 30.2%Language:JavaScript 16.6%Language:Dockerfile 5.2%Language:CSS 3.5%