Hi everyone. What is the recommended way to "forward" the parent flow's labels (at run time) to a child flow?
k
Kevin Kho
07/27/2021, 2:17 PM
Hey @Pedro Machado, use the new
create_flow_run
task and it accepts labels.
p
Pedro Machado
07/27/2021, 2:22 PM
Hi Kevin. How can I access the labels of the parent flow to pass to the child at run time?
If we use labels for separating environments, the parent flow needs to know what labels to pass to the child.
I don't believe I can use
flow.labels
in my parent flow. Thanks
k
Kevin Kho
07/27/2021, 2:31 PM
I took a look and it’s not in the context so you need to retrieve it by using the graphQL API and then using it like this:
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.