https://prefect.io logo
g

Giacomo Chiarella

07/18/2023, 1:50 PM
is there a way to trigger flow X when, for example, flow Y got setup wrongly (like missing parameter or anyway something which prevents Y to even start)?
1
c

Christopher Boyd

07/18/2023, 3:28 PM
An automation?
If FlowY enters a failed / crashed state, create a flow-run for Flow X - it’s hard to specify the exact condition, so it’s not on why it failed, only the state condition it terminates in
g

Giacomo Chiarella

07/18/2023, 3:30 PM
this is prefect cloud, we have a self-hosted instance
c

Christopher Boyd

07/18/2023, 4:08 PM
Unfortunately not, you would need to write some custom interaction to detect a failed flow and take action, likely using the API