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:
Matt Kaye
2025-05-27 14:07:34 -04:00
committed by GitHub
parent 521c5f430f
commit f9d3d508ca
36 changed files with 1609 additions and 45 deletions
+2 -2
View File
@@ -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",