Bruno Nunes
03/21/2022, 1:53 PMKevin Kho
03/21/2022, 1:55 PMClient.graphql()
. The Client()
also has some methods that might help you like get_flow_run_info
Bruno Nunes
03/21/2022, 1:59 PMKevin Kho
03/21/2022, 2:02 PMflow_run_info = """
query($input: uuid!) {
flow_run_by_pk(id: $input) {
id
name
}
}
"""
response = <http://requests.post|requests.post>(
url="<https://api.prefect.io>",
json=dict(query=flow_run_info, variables=dict(input="6764bf4d-7de0-4682-a5ae-8b9b2c744ced")),
headers=dict(authorization=f"Bearer {API_KEY}"),
)
print(response.status_code)
print(response.text)
Bruno Nunes
03/21/2022, 2:26 PMKevin Kho
03/21/2022, 2:26 PMBruno Nunes
03/21/2022, 2:27 PM