task to build "flow-within-a-flow" pipelines, i.e. Flow A includes the
StartFlowRun
task X, and task X starts Flow B. We would like to use the graphql API to track metadata on our flows. Is there a way to query flows such that for Flow B, we can see that it corresponds to task X, or at least, that it is originated from Flow A?
c
Chris White
01/27/2021, 3:49 AM
Hi Joyce - assuming you are using a recent enough version of Prefect Core, you should be able to query for flow runs that have an idempotency key matching a task run ID of task X
🙌 1
upvote 1
j
Joyce Xu
01/27/2021, 10:09 PM
Thanks @Chris White, that worked!
c
Chris White
01/27/2021, 10:10 PM
Awesome - glad I could help!
Chris White
01/27/2021, 10:11 PM
@Marvin archive “How to identify the parent Flow Run / Task Run that created another Flow Run using the StartFlowRun Task”
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.