mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-24 11:18:35 -05:00
8e80faf2d6
* 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)
|