https://prefect.io logo
Title
h

Hafsa Junaid

08/02/2022, 10:54 PM
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

Jenia Varavva

08/02/2022, 10:57 PM
Looks like your agent is connected to api.prefect.cloud not to 127.0.0.1
h

Hafsa Junaid

08/02/2022, 10:57 PM
Yeah I am working on cloud i.e api.prefect.cloud
Also, is orion start required for prefect cloud?
1
j

Jenia Varavva

08/02/2022, 10:59 PM
“orion start” starts a separate backend. You would want one or another, but not both
:upvote: 1
j

justabill

08/02/2022, 10:59 PM
No,
prefect orion start
is not required for Prefect Cloud. Cloud hosts an instance of the orion server for you.
h

Hafsa Junaid

08/02/2022, 11:02 PM
Alright. So now what could be the reason for flow for getting into late state?
j

Jenia Varavva

08/02/2022, 11:04 PM
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

Hafsa Junaid

08/02/2022, 11:09 PM
@Jenia Varavva okay but flow is there on cloud correct me if I am mistaken here
j

Jenia Varavva

08/02/2022, 11:11 PM
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

Hafsa Junaid

08/02/2022, 11:13 PM
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

Mason Menges

08/02/2022, 11:47 PM
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

Hafsa Junaid

08/03/2022, 12:16 AM
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
:thank-you: 1
m

Mason Menges

08/03/2022, 12:30 AM
Can you create a workqueue without any tags and try starting the agent with that queue?
👍 1
h

Hafsa Junaid

08/03/2022, 1:07 AM
@Mason Menges It worked, Thanks
m

Mason Menges

08/03/2022, 1:09 AM
No problem 😄