Skip to content
Advertisement

AIRFLOW – Setting relationships from a list of operators

I have a list of operators that were appended to a list in a for loop. I would like to set a relationship for my DAG where each task is set downstream in the order of the list. For example

JavaScript

Thank you

Advertisement

Answer

There’s a helper function created for that, will be much more performant than the accepted answer

See airflow.utils.helpers module

JavaScript
Advertisement