You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/08 12:42:29 UTC
[GitHub] [airflow] eladkal commented on issue #12145: Allow for setting dependencies in nested lists of tasks
eladkal commented on issue #12145:
URL: https://github.com/apache/airflow/issues/12145#issuecomment-938612308
We already have [`chain`](https://airflow.apache.org/docs/apache-airflow/stable/concepts/dags.html#task-dependencies):
```
from airflow.models.baseoperator import chain
# Replaces
# op1 >> op2 >> op4 >> op6
# op1 >> op3 >> op5 >> op6
chain(op1, [op2, op3], [op4, op5], op6)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org