S K
02/24/2021, 7:21 PMnicholas
id field instead of the flow_id fieldS K
02/24/2021, 7:27 PMnicholas
cancel_flow_run mutation is only tied to a specific run of a flow and not the flow itself; if we were to use the flow name, Prefect would either need to cancel all runs of that flow or make some assumption of your intent as to which run you wanted cancelled. This method is much more explicit.S K
02/24/2021, 7:32 PMnicholas
query {
flow( where: { name: { _eq: "<<your flow name>>" } } ) {
flow_runs( where: { state: { _eq: "Running" } } ) {
id // use this id to cancel a flow run
}
}
}