Hey all, (Prefect 1.0) I’m struggling to figure out why flows execute properly locally, but when triggered through Prefect Cloud + Docker Agent running local doesn’t. The flows are stuck in submitted. Anyone have an idea? I can’t find information about the error message “prefect: error: unrecognized arguments: execute flow-run” . Thanks in advance!
Thanks Anna, I checked that out before but cannot find an issue with the execution layer. I can manually pull the image from where the agent is running.
Do you happen to recognise this error message? The --env and --action arguments were used to build the flows. However, I removed these arguments during last build and on the main repo so I’m not sure why prefect still picks them up?
My base image is the official one. This image was working before without any issues
Do I need additional dependencies to use GitHub storage?
a
Anna Geller
07/17/2022, 4:06 PM
Can you share your prefect diagnostics output and explain your agent setup? Flow code seems to have been successfully downloaded so GitHub dependency is not an issue here
j
Jelle Vegter
07/17/2022, 4:31 PM
I think I found the issue. I was importing a variable DEPLOY_ENV from another file, which it wasn’t playing nice with. I use this variable at flow build time to reference the correct docker repo (xxxdev.repo/ xxxprd.repo) and prefect project (dev/prd). Is it better to create separate Prefect environments for different environments rather than projects?
Sorry for asking this, I searched for best practices regarding this but couldn’t find much.