From e83158bd9a0c5999eaa22f85dc99f3025383f5e0 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Wed, 9 Oct 2024 00:55:13 +0200 Subject: [PATCH] fix(Queue): bump max_attempts to 2. ref #376 --- config/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/settings.py b/config/settings.py index 3c77ed9d..03a4f863 100644 --- a/config/settings.py +++ b/config/settings.py @@ -215,9 +215,11 @@ Q_CLUSTER = { "name": "DjangORM", "workers": 2, - "timeout": 2 * 60 * 60, # 2h + # timeout is set to 2h (OFF daily sync is long) + "timeout": 2 * 60 * 60, + # retry must be less than timeout & less than it takes to finish a task "retry": 2 * 60 * 60 + 1, - "max_attempts": 1, + "max_attempts": 2, "queue_limit": 50, "bulk": 10, "orm": "default",