From 8c40baa2cf17281e8b400dc95ce3b2003e19b75b Mon Sep 17 00:00:00 2001 From: Nino Date: Wed, 27 Nov 2024 14:28:47 +0100 Subject: [PATCH] update mask task duration --- app/config/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/settings.py b/app/config/settings.py index 6fbf16846..b5f820bc7 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -514,7 +514,6 @@ def get_redis_url(): } CELERY_TASK_TRACK_STARTED = True -CELERY_TASK_TIME_LIMIT = 30 * 60 CELERY_BROKER_URL = get_redis_url() CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True BROKER_CONNECTION_MAX_RETRIES = None @@ -522,7 +521,7 @@ def get_redis_url(): BROKER_URL = CELERY_BROKER_URL CELERY_TASK_TRACK_STARTED = True CELERY_RESULT_BACKEND = "django-db" -CELERY_TASK_TIME_LIMIT = 30 * 60 +CELERY_TASK_TIME_LIMIT = 5400 # 1,5 hours CELERY_BEAT_SCHEDULE = { "queue_every_five_mins": { "task": "apps.health.tasks.query_every_five_mins", @@ -530,6 +529,7 @@ def get_redis_url(): }, } + CELERY_BROKER_TRANSPORT_OPTIONS = { "socket_keepalive": True, "socket_keepalive_options": {