Hello! I'm running a flow on PrefectCloud and I ge...
# prefect-community
Hello! I'm running a flow on PrefectCloud and I get the log message
"Checking Flow run state...".
I don't get any errors, but it is stuck. The flow runs successfully locally. Anyone experienced this? I'm not sure where to go from here.
Hi @Missi Sogbohossou! a couple clarifying questions: ā€¢ are you using prefect 1 or 2? ā€¢ where are you trying to run your flow when its not local?
Hi Nate, thanks for the reply
I'm using Prefect 1
Sorry i'm fairly new at this so i might not say the right thing. When i say locally, i mean i'm running it in my VS code terminal. Not locally means i'm running the flow using prefect cloud
Does that answer your question?
It is supposed to retrieve and upload some data to an API.
No worries šŸ™‚ When I say locally, I just mean "happening on your computer" It sounds like you can run
python my_flow.py
and run your flow okay, so then my questions are: ā€¢ how are you trying to run your flow when you see
"Checking Flow run state..."
? ā€¢ where do you see that message / see it get stuck? (in the Logs of the flow run in the UI? the agent logs?)
oh i see, yes, in the logs of the flow in the UI
I wonder if it'd be helpful to checkout the logs of your agent, to see what's happening when you try to run your flow
How do I check the logs of the agents?
Maybe this will help
Those are the only 3 functions in the flow. It get stuck in that state indefinitely.
I added a DEBUG logging to the code to see what is going on but not much there either
I'm trying to figure out if the issue is with the code? If so why does it work when i use
prefect run -p .......
you can find the agent logs wherever
prefect agent local start
was executed, which will show whether there was issue submitting your flow in the location where your agent is running I'm wondering if the task that's stuck in running is raising any signals?
šŸ‘ 1
oh, no issue shown at the agent hmmm... no for the signals, none in the code.
okay - would you be willing / able to share your flow code? that'll help me understand what could be happening
yes of course
I have to run but i'll be back tomorrow. I appreciate you helping with this.
Hi Nate! Hope you had a good weekend. I'm back to troubleshooting this issue. Let me know if you noticed something weird in the code. Thank you šŸ™‚
I wanted to let you know I found the issue btw: i forgot a breakpoint in the dunder init šŸ¤¦ā€ā™€ļøThanks again
hey! sorry I didn't get back to this right away - great to hear you've resolved the issue šŸ™‚