Skip to content

Commit 361fecb

Browse files
committed
spawn workflow fix
1 parent 0c85079 commit 361fecb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/hatchet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ def step1(self, context: Context):
1313
}
1414

1515
@hatchet.step(name="step2", parents=["step1"])
16-
def step2(self, context: Context):
16+
async def step2(self, context: Context):
1717
context.log("Called step2")
1818

19-
context.spawn_workflow("quickstart-child-python", {}).result()
19+
res = await context.aio.spawn_workflow("quickstart-child-python", {})
20+
await res.result()
2021

2122
return {
2223
"result": "This is a step which spawned a child workflow."

0 commit comments

Comments
 (0)