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
Jeremy Tee
06/09/2021, 10:03 AM
j
Jenny
06/09/2021, 10:37 AM
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
Jeremy Tee
06/09/2021, 11:56 AM
Ooohh, is there a way i can get the flow version from the context?
k
Kevin Kho
06/09/2021, 1:29 PM
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
}
}
}
Kevin Kho
06/09/2021, 1:33 PM
Why do you want this version?
j
Jeremy Tee
06/10/2021, 7:48 AM
@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
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.