Skip to content

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

License

Notifications You must be signed in to change notification settings

goosebruce/fastapi-celery

This branch is 2 commits behind testdrivenio/fastapi-celery:master.

Folders and files

NameName
Last commit message
Last commit date
Mar 16, 2022
May 9, 2021
May 9, 2021
May 9, 2021
May 9, 2021

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 44.5%
  • HTML 30.2%
  • JavaScript 16.6%
  • Dockerfile 5.2%
  • CSS 3.5%