Hi everyone, i have added the scheduler to auto-sc...
# prefect-ui
n
Hi everyone, i have added the scheduler to auto-schedule the flow every 30 minutes (*/30 * * * *) but the moment i save it 3 flows is scheduled of 30 minutes interval. First i want to know why 3 got triggered and how can i make it just one. like there will be only one scheduled at a time and once the scheduled one gets completed then next one will trigger
1
p
Well this is how it is supposed to work. You can set global concurrency limits on flows to avoid multiple flows running at the same time
n
Okay, thanks a lot
I tried with concurrency 1, but still 3 got scheduled
p
Yes, because that is how the scheduler works. You say you want to schedule it every 30th minute, so that is what the scheduler does (it will schedule a couple ahead in advance). The global concurrency limit will only be checked when te flow needs to start. The flow will remain in a pending state until the slot releases
n
any specific reason why three got scheduled ?
p
No idea, it always does 3. Guess that is the default
n
ohh okayy
p
Ah, they schedule at max 100 runs, at least 3 runs, and at least one hour in the future. https://docs.prefect.io/3.0/automate/add-schedules
2
🙌 1
n
Got it, thanks pim 🙌