Celery scheduler DB based
This commit is contained in:
@@ -115,6 +115,8 @@ CELERY_RESULT_BACKEND = 'redis://{}:{}/{}'.format(os.environ.get("REDIS_CELERY_H
|
||||
CELERY_ACCEPT_CONTENT = ['json']
|
||||
CELERY_TASK_SERIALIZER = 'json'
|
||||
CELERY_RESULT_EXPIRES = 3600 # Auto clean results after 1 hour
|
||||
CELERY_ENABLE_UTC = True
|
||||
CELERY_TIMEZONE = "UTC"
|
||||
|
||||
# Celery Beat scheduler (required for django-celery-beat to work)
|
||||
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers.DatabaseScheduler'
|
||||
|
||||
Reference in New Issue
Block a user