Channels
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
prefect-community
data-tricks-and-tips
prefect-aws
prefect-gcp
introductions
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-server
prefect-ui
prefect-kubernetes
Powered by
Title
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
#prefect-community
Join Slack