Skip to content

Commit 73d44ae

Browse files
authored
Merge pull request #131 from restackio/fix-production-demo
2 parents 46a8a76 + 64c6f68 commit 73d44ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

production_demo/src/workflows/child.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from restack_ai.workflow import workflow, import_functions, log
44

55
with import_functions():
6-
from src.functions.function import example_function
6+
from src.functions.function import example_function, ExampleFunctionInput
77
from src.functions.generate import llm_generate, GenerateInput
88
from src.functions.evaluate import llm_evaluate, EvaluateInput
99

@@ -15,7 +15,7 @@ class ChildWorkflow:
1515
@workflow.run
1616
async def run(self, input: ChildWorkflowInput):
1717
log.info("ChildWorkflow started")
18-
await workflow.step(example_function, input=input, start_to_close_timeout=timedelta(minutes=2))
18+
await workflow.step(example_function, input=ExampleFunctionInput(name='John Doe'), start_to_close_timeout=timedelta(minutes=2))
1919

2020
await workflow.sleep(1)
2121

0 commit comments

Comments
 (0)