What’s the difference/relationship between a flow ...
# ask-community
m
What’s the difference/relationship between a flow group id and a version group id? I’ve noticed that as a republish a flow I see the flow ID change while the flow group id and version group id stay the same
k
Have you seen this page?
m
Yes. Also, how would you define a version group?
k
The version group does not change so if you have a flow that keeps registered and the version gets bumped up frequently, you can use the version group id to invoke it. So it’s the ID for all versions of a flow
m
Okay. What’s the flow group ID?
k
The Flow Group ID is what default parameters and schedules get attached to when defined on the UI. Will ask the team for more details why they are split
👌 1
m
Thanks Kevin, would be great to figure this out
k
Oh thereis an open issue to simplify this
❤️ 1
Version group id is for backward compatiblity
m
Interesting. The commentary indicates that documentation around version group ID has been removed. Should I understand version group ID to be a relic? What should I consider to be the version-agnostic identifier for a flow going forward?
@Kevin Kho the CLI let’s you pass a flow ID or flow group ID when running a flow. I assume that passing the flow group ID will cause the latest version to run. Can I pass a flow ID of an archived flow? Will that run the archived flow?
k
In general, you can’t run archived flows in current Prefect. They are just for displaying in the UI.
m
That’s what I thought. So I can only pass a flow ID to the CLI if the flow is the active flow?
k
Yes I would say so
m
The flow run creation docs say you can pass a flow group ID when creating a flow run. The versioning docs say “version group isd can be used when creating a flow run”. Can we pass either a flow group ID or version group ID, or is only one of true?
k
It should be flow group ID or flow ID. This is the function that pulls the flow
m
Is the versioning documentation wrong?
k
can you give me a link? I think so but just wanna check if the page is old. is that on a phone?
@Kevin Kho does this look incorrect?
k
oh sorry forgot to respond. i left a message with the team to confirm but I think it’s outdated
it is outdated and it should be flow group everywhere, but still supported in the API calls
m
Got it thanks
@Kevin Kho will flow group ID ever be added to the Prefect context? What about tenant?
k
It was you who asked this before also right? Just making sure. What we can do is create a Github issue for it to keep track of how many people want it, or the core team may decide to add it. I can create an issue later today
m
I believe I had asked about some other fields I was hoping would be on the context
But that would be great
k
You could chime in more here if you want