Example for using Celery 4 with Flask (App Factory) and Periodic Tasks with Celery Beat
An example to run flask with celery including:
based on flask-celery-example by Miguel Grinberg and his bloc article
poetry install
poetry shell
docker run -d --name redis -p 6379:6379 redis
source .env
celery -A src.worker:celery worker --loglevel=DEBUG
source .env
celery -A src.worker:celery beat --loglevel=INFO
source .env
# check the available routes
flask routes
# start flask development server
flask run