Skip to content

Commit

Permalink
spawn workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 committed Jan 20, 2025
1 parent 0c85079 commit 361fecb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/hatchet.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ def step1(self, context: Context):
}

@hatchet.step(name="step2", parents=["step1"])
def step2(self, context: Context):
async def step2(self, context: Context):
context.log("Called step2")

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

return {
"result": "This is a step which spawned a child workflow."
Expand Down

0 comments on commit 361fecb

Please sign in to comment.