From bb435e33acc73c9d58895c84e88f4042023d37c7 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 12 Nov 2024 09:41:20 -0800 Subject: [PATCH] kill workers after 20 tasks --- app/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config.py b/app/config.py index 4a8c880d3..dcc8c551a 100644 --- a/app/config.py +++ b/app/config.py @@ -166,6 +166,7 @@ class Config(object): current_minute = (datetime.now().minute + 1) % 60 CELERY = { + "worker_max_tasks_per_child": 20, "broker_url": REDIS_URL, "broker_transport_options": { "visibility_timeout": 310,