mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-25 11:48:22 -05:00
5062bf1e3e
New SDKs and docs for the v1 release.
19 lines
312 B
Python
19 lines
312 B
Python
import time
|
|
|
|
from examples.durable.worker import (
|
|
EVENT_KEY,
|
|
SLEEP_TIME,
|
|
durable_workflow,
|
|
ephemeral_workflow,
|
|
hatchet,
|
|
)
|
|
|
|
durable_workflow.run_no_wait()
|
|
ephemeral_workflow.run_no_wait()
|
|
|
|
print("Sleeping")
|
|
time.sleep(SLEEP_TIME + 2)
|
|
|
|
print("Pushing event")
|
|
hatchet.event.push(EVENT_KEY, {})
|