]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Notes a TODO for a later library release to remove a workaround
authorTrenton Holmes <797416+stumpylog@users.noreply.github.com>
Fri, 9 Dec 2022 02:48:43 +0000 (18:48 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 12 Dec 2022 23:37:01 +0000 (15:37 -0800)
src/documents/tasks.py

index f5bad665ad012ed0ea3fe208a03248176ea34e59..b5dc264fb4c1162cd60cfe1af6e9c8ac946cc4f2 100644 (file)
@@ -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)