Alex Cannon

06/27/2022, 2:36 PM
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 with
storage=Github(..., ref='main')
2. I checkout a new branch
, and make some edits to the flow 3. I re-register the flow from this new branch, but still leave
ref='main' when the Flow is run, the version registered to the Prefect backend is from
, but the agent running the flow will have pulled down the version from the
branch? Thanks in advance!

Sylvain Hazard

06/27/2022, 2:37 PM
Hey ! I believe there will be an error and you won't be able to run the flow but I could be wrong.

Kevin Kho

06/27/2022, 3:18 PM
It will pull main, if the runtime pulled Flow deviates enough (the DAG) from the registered, it will error like Sylvain said