Hi, welcome to Prefect Disourse, great to have you here. Could you provide more info about your setup?
Are you on Prefect 1 or 2?
How did you set up your agent?
Can you try setting up a new conda virtual environment, installing and starting Prefect there and check out whether your deployment is set correctly? Check this topic for more on deployments: Prefect Deployments FAQ
I had the same problem. I had a flow that runs every xx:00:00 (every day every hour). But it shows “pending” in the UI before the agent actually starts working on the flow. You can see in the log screenshot that there is a 45 second delay before the flow is executed, which is a lot in my case.
Sorry, I meant to say that the agent starts running the flow.
All I meant was that when I schedule a task to run at a specific time, there is always a delay of a few seconds (15-45 seconds) before the flow actually starts running. I wanted to know if there was a way to remove this delay. Thanks
gotcha - this delay depends in the type of infra block. Serverless blocks have latency because they need to provision the infra. switching to an always-on instance and to something like Process or K8s job block could help reduce that latency at the cost of having to maintain that always-on instance