From 91a2dedfecc31f55e105cb4cd7ece7a5da10d888 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 6 Nov 2022 22:02:01 -0800 Subject: [PATCH] Celery JSON serializable object for `override_tag_ids` --- src/documents/management/commands/document_consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/management/commands/document_consumer.py b/src/documents/management/commands/document_consumer.py index 3dce17263..a405f590c 100644 --- a/src/documents/management/commands/document_consumer.py +++ b/src/documents/management/commands/document_consumer.py @@ -94,7 +94,7 @@ def _consume(filepath): logger.info(f"Adding {filepath} to the task queue.") consume_file.delay( filepath, - override_tag_ids=tag_ids if tag_ids else None, + override_tag_ids=list(tag_ids) if tag_ids else None, ) except Exception: # Catch all so that the consumer won't crash.