结合django
1、安装django-celery-beat
pip install django-celery-beat
2、添加
INSTALLED_APPS = ( ..., 'django_celery_beat', )
3、迁移
migrate
4、启动worker和beat
celery -A mysite worker -l debug
celery -A mysite beat -l debug -S djnago