From 73752f409f8361ef1ee9ade98b59b62f93f4b139 Mon Sep 17 00:00:00 2001 From: Jonathan KI <299080202+jonathankibg@users.noreply.github.com> Date: Thu, 16 Jul 2026 23:55:45 +0200 Subject: [PATCH] Align dynamic chain example with preceding static example The dynamic example creates five operators whereas the preceding static example chains only four tasks. Update the range so both examples are consistent. --- airflow-core/docs/core-concepts/dags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow-core/docs/core-concepts/dags.rst b/airflow-core/docs/core-concepts/dags.rst index 91796b1bbcae9..fc329f6f92fd2 100644 --- a/airflow-core/docs/core-concepts/dags.rst +++ b/airflow-core/docs/core-concepts/dags.rst @@ -130,7 +130,7 @@ And if you want to chain together dependencies, you can use ``chain``:: chain(op1, op2, op3, op4) # You can also do it dynamically - chain(*[EmptyOperator(task_id=f"op{i}") for i in range(1, 6)]) + chain(*[EmptyOperator(task_id=f"op{i}") for i in range(1, 5)]) Chain can also do *pairwise* dependencies for lists the same size (this is different from the *cross dependencies* created by ``cross_downstream``!)::