mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-16 01:44:51 +03:00
Merge 7f070ae37a
into 06c8adc622
This commit is contained in:
commit
7756c0dd23
|
@ -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 you’re planning to use.
|
||||
"visibility_timeout": 60 * 60 * 1, # default is 1 hour
|
||||
"retry_on_timeout": True,
|
||||
}
|
||||
{%- endif %}
|
||||
# django-allauth
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user