Hi all :wave: what happens if I register a flow wi...
# prefect-community
a
Hi all 👋 what happens if I register a flow with Github storage, where the storage points to a ref that's different from the ref I'm registering? In other words: 1. I have a
flow.py
flow with
storage=Github(..., ref='main')
2. I checkout a new branch
my-feature-branch
, and make some edits to the flow 3. I re-register the flow from this new branch, but still leave
ref='main'
...so when the Flow is run, the version registered to the Prefect backend is from
my-feature-branch
, but the agent running the flow will have pulled down the version from the
main
branch? Thanks in advance!
s
Hey ! I believe there will be an error and you won't be able to run the flow but I could be wrong.
k
It will pull main, if the runtime pulled Flow deviates enough (the DAG) from the registered, it will error like Sylvain said