]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Changes the celery serializer to use pickle over json
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 6 Mar 2023 16:03:33 +0000 (08:03 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 13 Mar 2023 03:53:53 +0000 (20:53 -0700)
src/paperless/settings.py

index d051a6ebc18610799179a8db51881ea6dd8f083b..6768704a0e2e165db796fc1772ba73632d622a82 100644 (file)
@@ -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()