Skip to content

jochman/fastapi-celery-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-celery-workshop

To run this project, you need docker.

docker compose up

Challenge

Theres a function called calculate_pi in worker/pi_calc.py.

  1. Create a task in worker/app.py to run that function
  2. Add an endpoint in api/app.py to access this function

results can be found in the branch calculate-pi

Local Development

For local development, there are running scripts in root dir, worker and api.

  1. add execute permissions chmod +x run.sh run_worker.sh run_api.sh
  2. run docker-compose without api and worker ./run.sh
  3. run worker ./run_worker.sh
  4. run api ./run_api.sh

The api and worker will automatically reload when files in their folder are changed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors