Created
October 22, 2017 16:21
-
-
Save channeng/f105997e57e9f067fbea7a048789099e to your computer and use it in GitHub Desktop.
Revisions
-
channeng created this gist
Oct 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ from celery.schedules import crontab CELERY_IMPORTS = ('app.tasks.test') CELERY_TASK_RESULT_EXPIRES = 30 CELERY_TIMEZONE = 'UTC' CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json' CELERYBEAT_SCHEDULE = { 'test-celery': { 'task': 'app.tasks.test.print_hello', # Every minute 'schedule': crontab(minute="*"), } }