From 20c597b1d7f77c12ae08c222bb2ce866eab6488a Mon Sep 17 00:00:00 2001 From: Adam H Date: Sat, 4 Jun 2022 10:12:53 +1000 Subject: [PATCH] Longer (5 vs 0.2s) guard_cycle for Django-Q To reduce average CPU load. Given paperless is mostly idling and when not, just spawns long-running operations (e.g., OCR), a 0.2s health-check of the Django-Q cluster is unnecessary. See also #1084 --- src/paperless/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index c512b1d47..9a5d9453d 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -458,6 +458,7 @@ PAPERLESS_WORKER_RETRY: Final[int] = __get_int( Q_CLUSTER = { "name": "paperless", + "guard_cycle": 5, "catch_up": False, "recycle": 1, "retry": PAPERLESS_WORKER_RETRY,