Skip to content

Commit 25127d6

Browse files
authored
Set celery task protocol and serializer (#4574)
See #4408
1 parent 027f919 commit 25127d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/config/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,8 @@ def get_private_ip():
937937
CELERY_RESULT_PERSISTENT = True
938938
CELERY_RESULT_EXTENDED = True
939939
CELERY_RESULT_EXPIRES = 0 # We handle cleanup of results ourselves
940+
CELERY_TASK_PROTOCOL = 1
941+
CELERY_TASK_SERIALIZER = "json"
940942
CELERY_TASK_ACKS_LATE = strtobool(
941943
os.environ.get("CELERY_TASK_ACKS_LATE", "False")
942944
)

0 commit comments

Comments
 (0)