https://prefect.io logo
Title
p

Paco Ibañez

04/04/2023, 5:53 PM
Hello! what would be the recommended way to define a flow that runs on a schedule and of which we only want 1 instance running at any given time? This would be for the cases where a first flow run takes longer to run than the deployment schedule frequency. Is there a better approach than creating some sort of marker in storage that flow runs check at the beginning?
a

alex

04/04/2023, 6:44 PM
You can set a concurrency limit on the work queue used for the flow's deployment https://docs.prefect.io/concepts/work-pools/#work-pool-concurrency
p

Paco Ibañez

04/04/2023, 7:05 PM
thanks!