Join Slack
Powered by
Hi there! I wonder if there's a way of setting spe...
# ask-community
g
Gabriel Milan
08/01/2022, 6:18 PM
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
Rob Freedy
08/01/2022, 8:24 PM
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
Gabriel Milan
08/01/2022, 8:53 PM
awesome! that sure helps, but is there a way of not submitting them at all?
r
Rob Freedy
08/01/2022, 9:59 PM
Are you running Prefect 1.0 or 2.0? In 1.0, this could be a possible solution for you:
https://discourse.prefect.io/t/is-it-possible-to-skip-a-new-scheduled-flow-run-if-a-previous-flow-run-of-the-same-flow-is-still-in-progress/492
✅ 1
upvote
1
g
Gabriel Milan
08/02/2022, 12:09 PM
we're running 1.0 for now. I'll share that with the team, thanks!!
👍 1
4
Views
Open in Slack
Previous
Next