Hi everyone! I want to rerun a prefect flow that ...
# prefect-getting-started
n
Hi everyone! I want to rerun a prefect flow that failed. I changed a part of my code to debug the fail. If I retry a flow from the UI, would it retry with my updated code? Or would you suggest "copy to new run" to make sure it will run my updated code?
n
hi @Nevin Yilmaz - it depends on where your code lives and how your deployment fetches it! how did you deploy? for example, if you use
deploy()
with something like
Copy code
flow.from_source(
  source="<https://github.com/you/yourrepo.git>",
  entrypoint="flow.py:main"
).deploy(...)
then you'd need to push your code to that repo before running again, since the code will get fetched from that repo at runtime
n
Thanks! Yes, I pushed the new code to the repo that the flow is pulling from. I clicked on retry and confirmed that my new code is running from the logs I get. So it was updated and the flow retry runs the updated code!
n
catjam