Hi, hi! I am trying to find out if there is a way to generate a timeline-like diagram of the flows I have registered on Prefect. Something to showcase that "Flow A is triggered by Flow B which scheduled at 12:00". Something similar to the schematic that I get on flow level with tasks.
k
Kevin Kho
08/12/2021, 2:17 PM
Hey @marios, I guess not easily at this time, but you might be able to construct it by using the GraphQL API to fetch the flows and then feeding it into matplotlib like this?
m
marios
08/12/2021, 2:31 PM
Thanks @Kevin Kho! Would you be able to point out same GraphQL queries that will be helpful as a starting point?
k
Kevin Kho
08/12/2021, 2:35 PM
Try something like this:
Copy code
query{
flow_run{
name
id
flow {
name
project {
id
}
}
start_time
created_by {
id
username
first_name
last_name
}
created_by_user_id
}
}
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.