If we use the Prefect API flow_runs/{id}/set_state method to state a RUNNING flow run's state to CANCELLING, will that actually cause Prefect Cloud to cancel the run? I'm trying to do the equivalent of hitting the "CANCEL" button in the Prefect CLoud UI
k
Kevin Grismore
12/11/2024, 7:37 PM
yep! all the things that are responsible for cancellation are checking to see if a run is in a cancelling state
Kevin Grismore
12/11/2024, 7:38 PM
if you want to replicate it exactly, open the dev tools network tab in your browser, click the cancel button, and check out the request that gets sent