Hi guys, I have flow deployment issue. Agent does not pickup flow registered in different host
Host A
1. I was doing my development on my local Macbook:
2. I created a flow
3. I switched backend to prefect cloud
4. I connected to Prefect cloud with API key.
5. I registered flow to to Prefect Cloud.
6. I started local agent
7. I can see both the flow and agent in Prefect Cloud UI
8. I ran the flow, agent picked up and execute the flow, it worked fine
9. I shutdown the agent
Host B
1. I created AWS EC2 instance and deploy my code
2. I connected to Prefect Cloud with same API key
3. I switched backend to Prefect Cloud and started local agent
4. I can see agent in UI
5. However, when I start running Flow I registered earlier, agent does not pickup flow
Please advise
k
Kevin Kho
02/21/2022, 8:53 PM
Agents not picking up are normally Label issues. Check that the labels of the Flow and agent match. But what storage did you use? Because the default storage places the file in Host A. Host B might not be able to run the flow because the file does not exist there.
Kevin Kho
02/21/2022, 8:54 PM
Have you seen the Storage docs? You would need a remote type of storage for this to work like S3 or Github
Kevin Kho
02/21/2022, 8:55 PM
Do disable the default hostname label from your Flow, you can also do:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.