Kevin Weiler
10/05/2021, 6:38 PMnicholas
auto_scheduled
flag on the flow run object; when this is true, you know that it was an automatically generated run, otherwise it was created through the API or the UI. Runs created through the API will also have a created_by
sub object if you’re running in Cloud, which will give you the id of the user that created the run through the UI/APIKevin Weiler
10/05/2021, 7:55 PM@task
decorated function)nicholas
query = """
query($id: uuid!) {
flow_run(where: {id: {_eq: $id} }) {
id
auto_scheduled
}
}
"""
client.graphql(query=query, variables=dict(id=context["flow_run_id"]))
@Kevin Kho might have some better advice there thoughKevin Kho
Kevin Weiler
10/05/2021, 9:00 PM