From b6dd36a439b3b8a2e101f8dd24367e20b8c39663 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Thu, 8 Dec 2022 18:48:43 -0800 Subject: [PATCH] Notes a TODO for a later library release to remove a workaround --- src/documents/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/documents/tasks.py b/src/documents/tasks.py index f5bad665a..b5dc264fb 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -101,6 +101,8 @@ def consume_file( # Celery converts this to a string, but everything expects a datetime # Long term solution is to not use JSON for the serializer but pickle instead + # TODO: This will be resolved in kombu 5.3, expected with celery 5.3 + # More types will be retained through JSON encode/decode if override_created is not None and isinstance(override_created, str): try: override_created = datetime.fromisoformat(override_created)