mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-07 18:39:17 -05:00
Blocked event loop blog post (#1775)
* feat: snippets * feat: first couple paragraphs * feat: flesh out hatchet examples * fix: one more * feat: log view * fix: cleanup * feat: another section * fix: fmt * feat: debugging section * fix: proofread * fix: lint * chore: gen * fix: copilot * fix: copilot * feat: add blog post link * fix: feedback * chore: sdk ver * chore: gen * fix: ugh
This commit is contained in:
@@ -33,7 +33,7 @@ async def step2(input: EmptyModel, ctx: Context) -> StepOutput:
|
||||
@dag_workflow.task(parents=[step1, step2])
|
||||
async def step3(input: EmptyModel, ctx: Context) -> RandomSum:
|
||||
one = ctx.task_output(step1).random_number
|
||||
two = (await ctx.task_output(step2)).random_number
|
||||
two = ctx.task_output(step2).random_number
|
||||
|
||||
return RandomSum(sum=one + two)
|
||||
|
||||
@@ -45,7 +45,7 @@ async def step4(input: EmptyModel, ctx: Context) -> dict[str, str]:
|
||||
time.strftime("%H:%M:%S", time.localtime()),
|
||||
input,
|
||||
ctx.task_output(step1),
|
||||
await ctx.task_output(step3),
|
||||
ctx.task_output(step3),
|
||||
)
|
||||
return {
|
||||
"step4": "step4",
|
||||
|
||||
Reference in New Issue
Block a user