You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/06/29 15:19:58 UTC

[airflow] 13/45: Cleanup `BranchDayOfWeekOperator` example dag (#24007)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 324be5081c7d5d599b8b7f9c35844e033e5a12a7
Author: eladkal <45...@users.noreply.github.com>
AuthorDate: Mon May 30 11:07:49 2022 +0300

    Cleanup `BranchDayOfWeekOperator` example dag (#24007)
    
    * Cleanup BranchDayOfWeekOperator example dag
    There is no need for `dag=dag` when using context manager.
    
    (cherry picked from commit 56fd04016f1a8561f1c02e7f756bab8805c05876)
---
 airflow/example_dags/example_branch_day_of_week_operator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/example_dags/example_branch_day_of_week_operator.py b/airflow/example_dags/example_branch_day_of_week_operator.py
index e4aaeb1475..879824ab1c 100644
--- a/airflow/example_dags/example_branch_day_of_week_operator.py
+++ b/airflow/example_dags/example_branch_day_of_week_operator.py
@@ -33,8 +33,8 @@ with DAG(
     schedule_interval="@daily",
 ) as dag:
     # [START howto_operator_day_of_week_branch]
-    empty_task_1 = EmptyOperator(task_id='branch_true', dag=dag)
-    empty_task_2 = EmptyOperator(task_id='branch_false', dag=dag)
+    empty_task_1 = EmptyOperator(task_id='branch_true')
+    empty_task_2 = EmptyOperator(task_id='branch_false')
 
     branch = BranchDayOfWeekOperator(
         task_id="make_choice",