https://www.youtube.com/watch?v=bqIwPX2HxA4
https://blog.miguelgrinberg.com/post/using-celery-with-flask
https://github.com/miguelgrinberg/flask-celery-example
redis-cli monitor
celery -A tasks worker --loglevel=info
Celery worker
celery -A celery_example.celery worker --loglevel=info
Flask application
python celery_example.py
curl -X GET http://localhost:5000/process/hello { "status": "http://localhost:5000/status/582db787-cb10-46ba-97ad-eccf6accd5b1", "uuid": "582db787-cb10-46ba-97ad-eccf6accd5b1" }
curl -X GET http://localhost:5000/status/582db787-cb10-46ba-97ad-eccf6accd5b1 { "state": "PENDING" }
curl -X GET http://localhost:5000/status/582db787-cb10-46ba-97ad-eccf6accd5b1 { "state": "SUCCESS", "status": "olleh" }