Update templates/workflow_template.py.j2
Some checks failed
CI Workflow / Testing the Flow (push) Has been cancelled
CI Workflow / Containerize the Flow (push) Has been cancelled

This commit is contained in:
admin user 2025-05-23 03:22:31 +00:00
parent 6eaac4cefb
commit 5d05a4eac7

View File

@ -6,7 +6,6 @@ import json
import datetime
import re
import jmespath
from temporalio.workflow import sleep
# Configure logging
logging.basicConfig(level=logging.INFO,
@ -17,7 +16,6 @@ logger = logging.getLogger(__name__)
class {{ workflow_class_name }}:
@temporalio.workflow.run
async def run(self, root_inputs: Dict[str, Any]) -> Dict[str, Any]:
await sleep(0)
workflow_info = temporalio.workflow.info()
workflow_output: Dict[str, Any] = {
"workflow_id": workflow_info.workflow_id,