mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-29 04:39:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
23 lines
360 B
Python
23 lines
360 B
Python
import time
|
|
|
|
from examples.durable_event.worker import (
|
|
EVENT_KEY,
|
|
durable_event_task,
|
|
durable_event_task_with_filter,
|
|
hatchet,
|
|
)
|
|
|
|
durable_event_task.run_no_wait()
|
|
durable_event_task_with_filter.run_no_wait()
|
|
|
|
print("Sleeping")
|
|
time.sleep(2)
|
|
|
|
print("Pushing event")
|
|
hatchet.event.push(
|
|
EVENT_KEY,
|
|
{
|
|
"user_id": "1234",
|
|
},
|
|
)
|