Files
hatchet/sdks/python/examples/durable/trigger.py
Matt Kaye 5062bf1e3e V1 SDKs and Docs (#1361)
New SDKs and docs for the v1 release.
2025-03-25 15:45:07 -07:00

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, {})