Hello people, am I misunderstanding what `prefect....
# ask-community
j
Hello people, am I misunderstanding what 
prefect.context.flow_run_version
 is? When I use it, I am expecting it to be based off the prefect UI flow version. However, it just shows the number 
3
 regardless of what version my flow is
j
Hi @Jeremy Tee the UI drop down you’ve included in your screenshot shows the flow version. Not the flow-run version. They’re too different things. The flow-run version updates wherever a run changes state. The flow version updates when you register a new version of your flow.
j
Ooohh, is there a way i can get the flow version from the context?
k
I think you’d need to use the GraphQL API like this inside your code with the Client to get the version. It’s not in the context
Copy code
{
  flow_run {
    name
    id
    version
    flow {
      version
      name
    }
  }
}
Why do you want this version?
j
@Kevin Kho just to keep a log tracing on our side, such that we know which version we are running. This is because in our flow we are calling other processes, so we want to know at the other side additional information of the flow
k
I see. Thanks for the info!