This commit is contained in:
Jelmer 2022-10-26 08:37:02 +02:00 committed by GitHub
commit 7756c0dd23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,6 +298,12 @@ CELERY_TASK_SOFT_TIME_LIMIT = 60
# https://docs.celeryq.dev/en/stable/userguide/configuration.html#beat-scheduler
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers:DatabaseScheduler"
CELERY_BROKER_TRANSPORT_OPTIONS = {
# https://docs.celeryproject.org/en/stable/getting-started/brokers/redis.html#id1
# increase the visibility timeout to match the time of the longest ETA youre planning to use.
"visibility_timeout": 60 * 60 * 1, # default is 1 hour
"retry_on_timeout": True,
}
{%- endif %}
# django-allauth
# ------------------------------------------------------------------------------