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
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.
k
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
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.