Pulling a private Git repo via prefect.yaml crashes Prefect worker #16465
Unanswered
TristanAmond
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm troubleshooting an issue deploying through prefect.yaml on Prefect managed infrastructure. I've created a simple flow testing the Discord webhook integration that I'm storing in a private Git repo. That flow runs successfully when deploying through python, but the flow instantly crashes when deploying through my prefect.yaml; the worker error log only shows a status code 1 exit. They're both deploying to the same worker that has prefect-github set up as a dependency, and they're accessing the private repo through a GitHubCredentials block.
I've tried a dozen different variations here, everything from moving the YAML file into the root directory to changing the default worker image. My best guess at this point is that the pathing is different when pulling the repo through the yaml file vs. the python script. I haven't found a way to explicitly set the path config seen in the Prefect UI when viewing a deployment; in the current iteration I've tried to fix this by setting the working directory, but that hasn't resolved the issue. I've also tried searching but haven't seen this specific configuration referenced before, so I hope fixing this helps more folks than just me. Sharing an example of my working python file and non-working yaml file below; any pointers would be greatly appreciated!
Project structure
successful python file deploy section
unsuccessful YAML file
Beta Was this translation helpful? Give feedback.
All reactions