mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Added visibility_timeout and retry_on_timeout to CELERY_BROKER_TRANSPORT_OPTIONS
This commit is contained in:
parent
4cbdc21515
commit
7f070ae37a
|
@ -293,6 +293,12 @@ CELERY_TASK_SOFT_TIME_LIMIT = 60
|
||||||
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#beat-scheduler
|
# http://docs.celeryproject.org/en/latest/userguide/configuration.html#beat-scheduler
|
||||||
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers:DatabaseScheduler"
|
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 you’re planning to use.
|
||||||
|
"visibility_timeout": 60 * 60 * 1, # default is 1 hour
|
||||||
|
"retry_on_timeout": True,
|
||||||
|
}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# django-allauth
|
# django-allauth
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user