https://prefect.io logo
j

Joshua Greenhalgh

09/01/2023, 12:09 PM
Can anyone please help me with this - there is no rhyme or reason to why the agent is not picking up the flows once cloud moves them to pending!? https://prefect-community.slack.com/archives/CL09KU1K7/p1693565355743989
j

Jake Kaplan

09/01/2023, 12:36 PM
Hi, when an agent/worker first picks up a run it puts it into
PENDING
. If I'm understanding right it sounds like you're saying that you have intermittent runs that are stuck in
PENDING
and never leave? If that's true there is likely some issue deploying the job. Do you have the agent logs from when this occurs? Ideally with
PREFECT_DEBUG_MODE=True
but if not that is okay
j

Joshua Greenhalgh

09/01/2023, 1:32 PM
Hey Jake I found https://prefect-community.slack.com/archives/CL09KU1K7/p1689833184377229?thread_ts=1683502786.443649&cid=CL09KU1K7 - and I do see this in my logs;
Copy code
This run is in a PENDING state and cannot transition to a PENDING state.
My agent was old version have bumped it to newest and will see if that solves
j

Jake Kaplan

09/01/2023, 1:33 PM
I would definitely try an updated version or even try out using a Worker. Normally you'll see that message if you have multiple agents/workers running at once. In which case it is okay, because it indicates that another agent/worker has picked it up (not in your case as it seems the run never makes it out of pending?)
j

Joshua Greenhalgh

09/01/2023, 1:34 PM
I was on
2.10.13-python3.9
- and now on 2.12
👍 1
I couldn't get workers to work with a python module containing my flows installed into the image
maybe this has changed now?
Also issues with namespaces and permissions for jobs- https://prefect-community.slack.com/archives/CL09KU1K7/p1681998131721049