no parent workflow needed, all in main wf loop

This commit is contained in:
Steve Androulakis
2025-01-01 17:31:40 -08:00
parent 01271efcb4
commit f6fde7a7cd
2 changed files with 1 additions and 16 deletions

View File

@@ -1,14 +0,0 @@
from temporalio import workflow
from .tool_workflow import ToolWorkflow, CombinedInput, ToolWorkflowParams
@workflow.defn
class ParentWorkflow:
@workflow.run
async def run(self, some_input: dict) -> dict:
combined_input = CombinedInput(
tool_params=ToolWorkflowParams(None, None), tools_data=some_input
)
child = workflow.start_child_workflow(ToolWorkflow.run, combined_input)
result = await child
return result