This project is just to demonstrate how celery can be integrated with django project to call task asynchronously as well as synchronously if required. Tasks can also be executed on schedule as well as periodically.
- Celery configuration
- Write celery task in django app
- Call task asynchronously
- Execute task periodically
pip install -r requirements.txt
python manage.py migrate
celery -A celery_demo worker -l info -Q celery,high
celery -A celery_demo beat
celery -A celery_demo events
pip install flower
celery -A celery_demo flower
Now go to browser and access flower real time monitoring web tool by using following url http://localhost:5555