Guest User

Untitled

a guest
Oct 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. from celery.schedules import crontab
  2.  
  3.  
  4. CELERY_IMPORTS = ('app.tasks.test')
  5. CELERY_TASK_RESULT_EXPIRES = 30
  6. CELERY_TIMEZONE = 'UTC'
  7.  
  8. CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
  9. CELERY_TASK_SERIALIZER = 'json'
  10. CELERY_RESULT_SERIALIZER = 'json'
  11.  
  12. CELERYBEAT_SCHEDULE = {
  13. 'test-celery': {
  14. 'task': 'app.tasks.test.print_hello',
  15. # Every minute
  16. 'schedule': crontab(minute="*"),
  17. }
  18. }
Add Comment
Please, Sign In to add comment