mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 13:19:44 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
10 lines
183 B
Python
10 lines
183 B
Python
import time
|
|
|
|
from examples.cancellation.worker import cancellation_workflow, hatchet
|
|
|
|
id = cancellation_workflow.run_no_wait()
|
|
|
|
time.sleep(5)
|
|
|
|
hatchet.runs.cancel(id.workflow_run_id)
|