My flow is failing because it can't find a file fr...
# prefect-community
j
My flow is failing because it can't find a file from my gitlab storage. I just added it so it is in the folder now, but the task is still saying that the file is missing. Is there a way I can have the task look at the most recent commit to the gitlab repo?
1
n
Hi @Jack Chang, once you uploaded your file to GitLab, did you run something like this?
Copy code
prefect register -p my_flow.py --project 'My Project'
if you defined a storage object like
Copy code
GitLab(
   repo="my/repo",
   path="flows/my_flow.py",
   ref="my-branch"
)
and included that in your
Flow()
definition, then you should just need to
register
(like above) so that Prefect knows where to pull your flow's script from, and then it should pull the most recent version of that flow from whatever branch you specified in
ref
I don't believe there is currently a way to pull by specific commit