Hey folks - what can I do with the flow version re...
# prefect-cloud
m
Hey folks - what can I do with the flow version referenced in a flow run? It is an alphanumeric string - can I use it to look up the details for that flow or deployment version? If no, how can I associate a given flow run to a given deployment version?
1
c
That field is yours to set however you see fit. Some folks set it to the hash of their current git commit, or to another version number. It's possible to query by that version string on the
flow_runs/filter
API. We don't automatically set it for you when we create flow runs from a deployment, so I don't think it will help you for that use case.
👀 1
m
I think I'm following. Is there a supported way for me to tie a flow run to a given deployment version? Do I need to set the Flow Version field to the deployment version (looking up the deployment version) when I run a flow?
c
Ah yes, sorry, I think you would have to perform that version copy manually at this time. We've always treated the
deployment.version
and
flow_run.flow_version
as user-managed fields, maybe there's a way for us to optionally enable this as opt-in behavior. I'll bring it back to the team to discuss
m
Thanks Chris! The current & proposed behavior that you captured looks good to me