Celery scheduler DB based

This commit is contained in:
Luciano Gervasoni
2025-09-04 08:46:04 +02:00
parent 7b0d24309c
commit a21ff9c5d6
2 changed files with 3 additions and 1 deletions

View File

@@ -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'