From 43c729568b434c7aae22c76f4cc335d86275ba19 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sun, 14 Feb 2021 12:29:55 +0100 Subject: [PATCH] release worker memory after tasks are done. --- src/paperless/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 718738f71..59133dd45 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -397,6 +397,7 @@ TASK_WORKERS = int(os.getenv("PAPERLESS_TASK_WORKERS", default_task_workers())) Q_CLUSTER = { 'name': 'paperless', 'catch_up': False, + 'recycle': 1, 'workers': TASK_WORKERS, 'redis': os.getenv("PAPERLESS_REDIS", "redis://localhost:6379") }