Hugo Kitano
10/22/2021, 5:28 PMquery {
flow_run(where: {name: {_eq: "woodoo-leopard"}}) {
id
state
start_time
}
}
Kevin Kho
Kevin Kho
import requests as re
query = """query {
flow_run(where: {name: {_eq: "..."}}) {
id
state
start_time
}
}"""
url = '<https://api.prefect.io>'
r = <http://re.post|re.post>(url, json={'query': query}, headers={"authorization": "Bearer API_KEY"})
print(r.status_code)
print(r.text)
Hugo Kitano
10/22/2021, 5:55 PMKevin Kho