Eric Coleman

04/05/2023, 4:53 PM
Hello, I am struggling with identifying a flow_run state, when it is a 'TriggerFail' object. I need to be able to detect this state as there are missing attributes like 'name' and such on a flow_run object when the state is 'TriggerFail'. I have searched all over, and I have tried multiple approaches, including flow_run.state.type which does not exist, even though the documentation suggests it should. There is no flow_run.state.is_triggerfail() method. The state output looks like a dictionary object if you output it to a logger. How can I simply detect if the state object is 'TriggerFail'?
👀 1