https://prefect.io logo
m

Missi Sogbohossou

09/23/2022, 5:02 PM
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.
n

Nate

09/23/2022, 5:19 PM
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?
m

Missi Sogbohossou

09/23/2022, 5:41 PM
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.
n

Nate

09/23/2022, 6:40 PM
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?)
m

Missi Sogbohossou

09/23/2022, 7:02 PM
oh i see, yes, in the logs of the flow in the UI
n

Nate

09/23/2022, 7:05 PM
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
m

Missi Sogbohossou

09/23/2022, 7:11 PM
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 .......
n

Nate

09/23/2022, 7:25 PM
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
m

Missi Sogbohossou

09/23/2022, 7:42 PM
oh, no issue shown at the agent hmmm... no for the signals, none in the code.
n

Nate

09/23/2022, 7:44 PM
okay - would you be willing / able to share your flow code? that'll help me understand what could be happening
m

Missi Sogbohossou

09/23/2022, 8:07 PM
yes of course
usersync.py
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
n

Nate

09/26/2022, 5:49 PM
hey! sorry I didn't get back to this right away - great to hear you've resolved the issue šŸ™‚
4 Views