Hi, Is it not possible to skip a new scheduled flo...
# ask-community
s
Hi, Is it not possible to skip a new scheduled flow run if a previous flow run of the same flow is still in progress? I am not able to find any solution to this problem. I currently have flow.serve() deployed somewhere with limit and tagging concurrency set to 1. Even then, the next flow goes into the running stage before the previous finish. More surprisingly, I also observed the newer one actually started executing and the older one kind of hung up in a running state.
t
You can use Prefect’s API to check state at the top of the flow run: https://github.com/taylor-curran/prefect-pacc-2024/blob/main/Module_6/check_state.py
Also if its helpful to know, deployment level concurrency limits are being considered for the roadmap right now. I’ll let the engineers know you’re a plus one
also fyi tagging concurrency limits only works for tasks not flows or deployments.