Denis Pokotylyuk(External)
03/24/2022, 9:46 PMquery GetSchedules {
flow_group(where: {id: {_eq: "eb595947-xxxxxx"}}) {
schedule
}
}
Kevin Kho
03/24/2022, 9:50 PMquery GetSchedules {
flow_group(where: {id: {_eq: "7fb20810-cd37-41cf-9b04-218c284f6db5"},
default_parameters: {_contains: {x: "something else "}}}) {
schedule
default_parameters
}
}
Denis Pokotylyuk(External)
03/24/2022, 10:06 PMset_flow_group_schedule
Kevin Kho
03/24/2022, 10:10 PMDenis Pokotylyuk(External)
03/24/2022, 10:10 PMquery GetSchedules {
flow_group(where: {id: {_eq: "eb595947-xxxxx"}}) {
default_parameters
}
}
{
"data": {
"flow_group": [
{
"default_parameters": {}
}
]
}
}
How can I query on that then?default_parameters: {_contains: {x: "something else "}}}) {
What is “x: “something else “” in my case? 🙂Kevin Kho
03/24/2022, 10:12 PMDenis Pokotylyuk(External)
03/24/2022, 10:13 PMKevin Kho
03/24/2022, 10:14 PMDenis Pokotylyuk(External)
03/24/2022, 10:16 PMKevin Kho
03/24/2022, 10:17 PMDenis Pokotylyuk(External)
03/24/2022, 10:20 PMKevin Kho
03/24/2022, 10:20 PMvalue two
Denis Pokotylyuk(External)
03/24/2022, 10:23 PMKevin Kho
03/24/2022, 10:26 PMclocks
. Not something as nester as this. You’d have to execute that in PythonDenis Pokotylyuk(External)
03/24/2022, 10:29 PMKevin Kho
03/24/2022, 10:34 PMfrom prefect.client import Client
query = """
query {
flow(where: {id: {_eq: "608f7f60-cc0d-4abc-a63a-bb653ff2c1e5"}}) {
id
schedule
}
}
"""
client = Client()
res = client.graphql(query)
print(res["data"])
res["data"]
will be a dictionary you can manipulateDenis Pokotylyuk(External)
03/24/2022, 10:37 PMKevin Kho
03/24/2022, 10:38 PMDenis Pokotylyuk(External)
03/24/2022, 10:39 PMKevin Kho
03/24/2022, 10:43 PMDenis Pokotylyuk(External)
03/24/2022, 10:52 PMBut if I run every schedules about once or twice a day, not so very often. Can I have more than 10?
Kevin Kho
03/24/2022, 10:55 PMDenis Pokotylyuk(External)
03/24/2022, 10:56 PMKevin Kho
03/24/2022, 11:00 PM