Hiya, IIUC agents poll the server every 10 seconds...
# ask-community
o
Hiya, IIUC agents poll the server every 10 seconds. Are there any plans to decrease this latency and enable flow runs to start immediately once scheduled?
k
Hey @Oliver Mannion, will check with the team on this but I believe there are no plans.Could you tell me more about your use case that requires a lower interval?
Hey Oliver, they poll ahead of time already so they do pick up the runs in the future. I think the only time you’d see a delay is if you hit the “Quick Run” button from the UI, but there won’t be a delay for the scheduled runs.
o
Thanks Kevin for looking into this. We have some ML model evaluation flows that we want to be able to trigger from a git push and from the command line during development. Being able to trigger immediately would speed up our iteration loop.
k
I don’t think think we’d support the configurability because we’re primarily batch oriented, but you could try editing the code here by editing the dictionary here and then just lower the intervals. I honestly don’t know if you might run into race conditions though or performance issues.
o
I guess we could try adjusting that to hit the API more frequently. Would you consider a long-polling method, eg: GraphQL subscriptions?
k
That we don't support I'm pretty sure. I suggest you open a Github Discussion maybe? To get more of a conversation around and so other people can chime in?
o
Thanks Kevin, I've started a discussion thread here: https://github.com/PrefectHQ/prefect/discussions/5029
k
Sounds good! Will ask people to chime in also if they raise the same thing
👍 1