Skip to content

Commit

Permalink
Cleanup BranchDayOfWeekOperator example dag (#24007)
Browse files Browse the repository at this point in the history
* Cleanup BranchDayOfWeekOperator example dag
There is no need for `dag=dag` when using context manager.
  • Loading branch information
eladkal authored May 30, 2022
1 parent 0f7dbef commit 56fd040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/example_dags/example_branch_day_of_week_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
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",
Expand Down

0 comments on commit 56fd040

Please sign in to comment.