Created
May 11, 2020 15:53
-
-
Save timothymugayi/0518ab097b46e2aaf57a57a016c76493 to your computer and use it in GitHub Desktop.
This file contains 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 characters
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