From 1df30a2132228d9ac40ed7230e01c5b625d8e7c8 Mon Sep 17 00:00:00 2001 From: Adam Lewis <23342526+Adam-D-Lewis@users.noreply.github.com> Date: Tue, 23 Jul 2024 15:49:26 -0500 Subject: [PATCH] restart workers after executing 10 tasks to mitigate memory leaks (#840) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- conda-store-server/conda_store_server/_internal/worker/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conda-store-server/conda_store_server/_internal/worker/app.py b/conda-store-server/conda_store_server/_internal/worker/app.py index e8400c7f3..48c996348 100644 --- a/conda-store-server/conda_store_server/_internal/worker/app.py +++ b/conda-store-server/conda_store_server/_internal/worker/app.py @@ -72,6 +72,7 @@ def start(self): argv = [ "worker", "--loglevel=INFO", + "--max-tasks-per-child=10", # mitigate memory leaks ] # The default Celery pool requires this on Windows. See