https://prefect.io logo
Title
f

FuETL

11/29/2022, 2:45 PM
Hey everyone, I have a question regarding scheduling of flows run, 1 have one agent running at moment, and i used the:
create_flow_run(flow_id=flow_id, parameters=parameters)
But sometimes when theres nothing to run or running, the flow is scheduled to run in like 20~30 min, even when i'm not providing the scheduled_start_time parameter, how can i make my flows always get reschedule immediately? (I was think that this is the default behaviour), maybe is the amount of agent that i'm running? Thanks.
Should i provide always datetime.utcnow()?
k

Khuyen Tran

11/29/2022, 4:55 PM
Can you be more specific about what you mean by “sometimes when theres nothing to run or running, the flow is scheduled to run in like 20~30 min”.
f

FuETL

11/29/2022, 10:42 PM
Yes, sorry, so what happen is sometimes the agent is idle, i send a new flow to run but instead of be scheduled to run or start in a few seconds it get scheduled to run in x minutes (for my testings is like 15~30min after i original call the flow to run immediately. I don't know why this is happen sometimes
I use ECS as Agent.
prefect v1