From: Adam H Date: Sat, 4 Jun 2022 00:12:53 +0000 (+1000) Subject: Longer (5 vs 0.2s) guard_cycle for Django-Q X-Git-Tag: v1.8.0-beta.rc1~57^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1091%2Fhead;p=thirdparty%2Fpaperless-ngx.git 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 --- diff --git a/src/paperless/settings.py b/src/paperless/settings.py index c512b1d47c..9a5d9453d7 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,