From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 6 Mar 2023 16:03:33 +0000 (-0800) Subject: Changes the celery serializer to use pickle over json X-Git-Tag: v1.14.0-beta.rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849a108520c3af5201dd981fbe60175e744ae5e6;p=thirdparty%2Fpaperless-ngx.git Changes the celery serializer to use pickle over json --- diff --git a/src/paperless/settings.py b/src/paperless/settings.py index d051a6ebc1..6768704a0e 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -638,6 +638,11 @@ CELERY_RESULT_EXTENDED = True CELERY_RESULT_BACKEND = "django-db" CELERY_CACHE_BACKEND = "default" +# https://docs.celeryq.dev/en/stable/userguide/configuration.html#task-serializer +CELERY_TASK_SERIALIZER = "pickle" +# https://docs.celeryq.dev/en/stable/userguide/configuration.html#std-setting-accept_content +CELERY_ACCEPT_CONTENT = ["application/json", "application/x-python-serialize"] + # https://docs.celeryq.dev/en/stable/userguide/configuration.html#beat-schedule CELERY_BEAT_SCHEDULE = _parse_beat_schedule()