Nimesh Kumar
02/18/2025, 12:07 PMBianca Hoch
02/18/2025, 4:55 PMNimesh Kumar
02/18/2025, 5:12 PMBianca Hoch
02/18/2025, 6:52 PMcan it be possible that only an idle agent will get a chance to run a flow. so for example if Agent-1 is busy it will not will any other flow run.You could set a
--limit
flag on the agent process to limit the number of flow runs that it can initiate. If you have multiple agents polling the same queue, setting a limit for each agent will distribute the flow runs more evenly amongst them
Let say it get picked. Now 2 flow run is executing in one particular agent. and let assume one of them gets crashed (insufficient infra issue) is it possible we can put some sort of retry so that it again retry to run same flow (as it might have regain some more resources if one of the two flow run completed successfully).Depending on your setup, an automation that kicks off a new flow run in response to another run of the same flow entering a
Crashed
state could help you here. Automations are available in Prefect OSS v3.0. Otherwise, if you're using 2.0, they're only available with Prefect Cloud.Nimesh Kumar
02/19/2025, 5:51 AM--limit
flag. I am not able to figure out where i can set this limitNimesh Kumar
02/19/2025, 7:22 AM