Files
hatchet/examples/python/cancellation/trigger.py
Gabe Ruttner 8e80faf2d6 Fe overhaul docs (#1640)
* api changes

* doc changes

* move docs

* generated

* generate

* pkg

* backmerge main

* revert to main

* revert main

* race?

* remove go tests
2025-04-30 14:10:09 -07:00

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)