Hi there! I wonder if there's a way of setting spe...
# ask-community
g
Hi there! I wonder if there's a way of setting specific flows not to submit late runs. Thing is some of our flows, if submitted from "Late runs" might give us trouble
r
Hey Gabriel! You can take action on a flow/tasks specific task state (i.e. if a flow/task has a state labeled as "Late") using the get_state() function in 2.0. The same thing can be accomplished in 1.0 using state handlers. https://discourse.prefect.io/t/how-to-take-action-on-a-state-change-of-a-task-run-task-level-state-handler/82
upvote 1
❤️ 1
g
awesome! that sure helps, but is there a way of not submitting them at all?
r
1
upvote 1
g
we're running 1.0 for now. I'll share that with the team, thanks!!
👍 1