I have a bunch of scheduled flows at regular inter...
# ask-community
s
I have a bunch of scheduled flows at regular intervals. Is there anyway to control that the subsequent run is only triggered post the successful/failure (not running state) of the previous run. I don't want 2 jobs of the same task running in parallel.
k
You could deploy a flow to a work queue with a concurrency limit of 1, so if a flow is scheduled to start while it's already running, it'll wait for the current run to finish.
🙌 2
s
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 @Kevin Grismore Thanks a lot for your response> There is an article by Anna regarding using a continous service to have this implemented but I don't have access or could understand the alternative apporach. Are you aware of it ?
k
It looks like that post is regarding Prefect 1
✅ 1