mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 21:29:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
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, {})
|