From 8cc62d46e631ca9c1145fd28aa5e356021c01c14 Mon Sep 17 00:00:00 2001 From: Dmitry Paramonov Date: Wed, 15 May 2024 15:21:45 +0300 Subject: [PATCH] fix: Fix arg list --- agents-api/agents_api/workflows/embed_docs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents-api/agents_api/workflows/embed_docs.py b/agents-api/agents_api/workflows/embed_docs.py index 88094fa6b..20cb388ea 100644 --- a/agents-api/agents_api/workflows/embed_docs.py +++ b/agents-api/agents_api/workflows/embed_docs.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 +from datetime import timedelta from temporalio import workflow with workflow.unsafe.imports_passed_through(): @@ -13,7 +14,6 @@ class EmbedDocsWorkflow: async def run(self, doc_id: str, title: str, content: list[str]) -> None: return await workflow.execute_activity( embed_docs, - doc_id, - title, - content, + args=[doc_id, title, content], + schedule_to_close_timeout=timedelta(seconds=600), )