michaelconan / flask-celery

The Python micro framework for building web applications.
https://flask.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Flask Celery Example and Docs Improvement #2

Open michaelconan opened 1 month ago

michaelconan commented 1 month ago

The flask documentation and repository examples provide some helpful information about using Celery with Flask, however, there are some core elements of the usage pattern that are not explicitly outlined. The documentation should clearly demonstrate:

Even as someone with reasonable experience in Python and some with Flask, I had a hard time finding the answer to this is the docs.

TODO:

michaelconan commented 1 month ago

Bad example: Medium

Creates a separate app instance rather than using the flask.current_app function.

michaelconan commented 1 month ago

Use conftest.py for shared fixtures - take example from tutorial.

Given extent of tutorial example may not need to worry about tests here... or just celery task test.