The Python SDK orchestration client is able to delete flow runs, but I want to cancel flow runs so that the information on what is run is not lost. Does anyone have an example to do this? In the docs I only see examples with the UI and CLI
✅ 1
Eric
02/29/2024, 8:51 PM
Figured it out, there is a set_flow_run_state method in the client that can be used!
🙌 1
e
Elstan DeSouza
03/01/2024, 2:13 PM
Nice find. This is a convenient option. I found an example of implementing this on the Prefect Discourse. The REST API supports this functionality too. Here is a link to the docs for prefect Server, but the same works for Prefect Cloud.