Prefect Agent and and Orion both are up, yet the f...
# ask-community
h
Prefect Agent and and Orion both are up, yet the flow on cloud: 2.0 is scheduled only and paused in the late state
1
j
Looks like your agent is connected to api.prefect.cloud not to 127.0.0.1
h
Yeah I am working on cloud i.e api.prefect.cloud
Also, is orion start required for prefect cloud?
1
j
“orion start” starts a separate backend. You would want one or another, but not both
upvote 1
j
No,
prefect orion start
is not required for Prefect Cloud. Cloud hosts an instance of the orion server for you.
h
Alright. So now what could be the reason for flow for getting into late state?
j
Your flow is likely “uploaded” to the “local API”, not the Cloud API. Having the agent connected to the Cloud API, the “local API” probably has no agents connected?
Set
PREFECT_API_URL=<http://127.0.0.1:4200/api>
for the agent
Or conversely upload the flow to the Cloud API, not 127.0.0.1
h
@Jenia Varavva okay but flow is there on cloud correct me if I am mistaken here
j
You’re right, I must be mistaken. I was referring to your first screenshot with 127.0.0.1. Will let orion experts answer this one
h
Trying to understand why a prefect flows on cloud:2.0 is getting in late state when agent is running on terminal.
1
@Open AIMP
m
Hey @Hafsa Junaid this one's kind of a long shot but do you have any tags specified on your deployed flow? If so you'll want to make sure the agent is started while specifying those tags as well.
h
No tags on deployed flow, but there is a tag with queue.. I have tested starting agent with both queue id and tag.. flow on cloud is still not starting @Mason Menges
🙏 1
m
Can you create a workqueue without any tags and try starting the agent with that queue?
👍 1
h
@Mason Menges It worked, Thanks
m
No problem 😄