Skip to content

Instantly share code, notes, and snippets.

@timothymugayi
Created May 11, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothymugayi/0518ab097b46e2aaf57a57a016c76493 to your computer and use it in GitHub Desktop.
Save timothymugayi/0518ab097b46e2aaf57a57a016c76493 to your computer and use it in GitHub Desktop.
from celery.schedules import crontab
# CELERY
# http://docs.celeryproject.org/en/4.4.1/userguide/configuration.html
REDIS_URL = os.environ.get('REDIS_URL', 'redis://localhost:6379/0')
CELERY_BROKER_URL = REDIS_URL
CELERY_RESULT_BACKEND = REDIS_URL
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_IGNORE_RESULT = False
CELERY_ENABLE_UTC = False
CELERY_TIMEZONE = 'Asia/Singapore'
CELERY_IMPORTS = ("django_celery_site.tasks",)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment