Skip to content

Commit

Permalink
fix syntax error on chain exemple of dags.rst (apache#43079)
Browse files Browse the repository at this point in the history
* fix sintax error on chain exemple of dags.rst

On the line 128, contains an error that concatenates a string with a number. So, I just fixed transforming the number into a string.

* Update docs/apache-airflow/core-concepts/dags.rst

Co-authored-by: Kaxil Naik <[email protected]>

---------

Co-authored-by: Kaxil Naik <[email protected]>
  • Loading branch information
arthbraveheart and kaxil authored Oct 26, 2024
1 parent 93ad181 commit b2ecb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/core-concepts/dags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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='op' + i) for i in range(1, 6)])
chain(*[EmptyOperator(task_id=f"op{i}") for i in range(1, 6)])

Chain can also do *pairwise* dependencies for lists the same size (this is different from the *cross dependencies* created by ``cross_downstream``!)::

Expand Down

0 comments on commit b2ecb6c

Please sign in to comment.