Files
hatchet/examples/python/blocked_async/blocking_example_trigger.py
Matt Kaye f9d3d508ca 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
2025-05-27 11:07:34 -07:00

21 lines
303 B
Python

# > Trigger
import time
from examples.blocked_async.blocking_example_worker import (
blocking,
non_blocking_async,
non_blocking_sync,
)
non_blocking_sync.run_no_wait()
non_blocking_async.run_no_wait()
time.sleep(1)
blocking.run_no_wait()
time.sleep(1)
non_blocking_sync.run_no_wait()