The Python SDK orchestration client is able to del...
# ask-community
e
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
Figured it out, there is a set_flow_run_state method in the client that can be used!
🙌 1
e
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.
🙌 1