I am not sure any of those actually hold the flow version. You mean that number that just increases right? I think you need to hit the GraphQL API with
client.graphql
to retrieve it
Kevin Kho
04/05/2022, 3:26 PM
Copy code
from prefect.client import Client
client = Client()
query="""
query {
flow(where: {name: {_eq: "schedule_test"}, archived: {_eq: false}}) {
name
project{
name
}
version
archived
}
}
"""
print(client.graphql(query)["data"]["flow"][0]["version"])
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.