From f985f7db51cb3832b2fd609d22b0a7dbed1f4295 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 7 May 2026 09:20:04 -0700 Subject: [PATCH] Fix: Celery chords by using Redis as our result backend (#12741) --- src/paperless/settings/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/paperless/settings/__init__.py b/src/paperless/settings/__init__.py index db57173cd..d82694dd8 100644 --- a/src/paperless/settings/__init__.py +++ b/src/paperless/settings/__init__.py @@ -650,6 +650,11 @@ logging.config.dictConfig(LOGGING) # https://docs.celeryq.dev/en/stable/userguide/configuration.html CELERY_BROKER_URL = _CELERY_REDIS_URL +CELERY_RESULT_BACKEND = _CELERY_REDIS_URL +CELERY_RESULT_SERIALIZER = "signed-pickle" +# Results are only needed for chord synchronization +# a short TTL avoids Redis memory accumulation. +CELERY_RESULT_EXPIRES = 3600 CELERY_TIMEZONE = TIME_ZONE CELERY_WORKER_HIJACK_ROOT_LOGGER = False