mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-02 23:50:10 -05:00
Fe overhaul docs (#1640)
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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, {})
|
||||
Reference in New Issue
Block a user