Matthew Roeschke
04/05/2022, 3:10 PMprefect get flows
cli command?Kyle McChesney
04/05/2022, 3:22 PMKevin Kho
04/05/2022, 3:23 PMclient.graphql
to retrieve itfrom 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"])
Matthew Roeschke
04/05/2022, 3:27 PMYou mean that number that just increases right?Yes, okay I’ll use that. Thanks!