A simple example of how to use Celery to schedule periodic tasks. It uses Redis as message broker.
- celery.py = where Celery is initialised
- celeryconfig.py = all the configuration needed
- tasks.py = this example implements a simple task that run every 10 seconds
celery -A periodic_tasks beat -l info
celery -A periodic_tasks worker -l info
- celery.py = where Celery is initialised
- celeryconfig.py = all the configuration needed
- tasks.py = this example implements a simple notification system that uses Celery's crontab feature
celery -A crontab_tasks beat -l info
celery -A crontab_tasks worker -l info