From c1466398027dcff915e210fce35922a4eb6d257c Mon Sep 17 00:00:00 2001 From: admin user Date: Fri, 23 May 2025 01:50:25 +0000 Subject: [PATCH] Update templates/workflow_template.py.j2 --- templates/workflow_template.py.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/workflow_template.py.j2 b/templates/workflow_template.py.j2 index 6fd6bed..25fb368 100644 --- a/templates/workflow_template.py.j2 +++ b/templates/workflow_template.py.j2 @@ -6,6 +6,7 @@ import json import datetime import re import jmespath +from temporalio import workflow # Configure logging logging.basicConfig(level=logging.INFO, @@ -16,7 +17,7 @@ logger = logging.getLogger(__name__) class {{ workflow_class_name }}: @temporalio.workflow.run async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]: - await temporalio.workflow.sleep(0) + await workflow.sleep(0) workflow_info = temporalio.workflow.info() workflow_output: Dict[str, Any] = { "workflow_id": workflow_info.workflow_id,