Skip to content
Discussion options

You must be logged in to vote

Hey @pro-jasonnagy! The key detail is that the failure is happening during Prefect’s deployment pull step, not when it tries to import your flow code.

In your log, Prefect gets to:

Running git_clone step...

and then fails with:

[WinError 2] The system cannot find the file specified

That traceback is coming from Prefect trying to execute git clone, so the missing “file” is almost certainly the git executable on the worker machine, not your flow file, prefect.yaml, or the GitHub block.

A few clarifications:

  1. Because you created the deployment with flow.from_source(...).deploy(...), Prefect stores the pull instructions on the deployment itself. Your local prefect.yaml is not used at run time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pro-jasonnagy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants