BranchDayOfWeekOperator

Apache Airflow

Branches into one of two lists of tasks depending on the current day. For more information on how to use this operator, take a look at the guide: BranchDayOfWeekOperator

View on GitHub

Last Updated: May. 7, 2021

Access Instructions

Install the Apache Airflow provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

follow_task_ids_if_trueRequiredstr or list[str]task id or task ids to follow if criteria met
follow_task_ids_if_falseRequiredstr or list[str]task id or task ids to follow if criteria does not met
week_dayRequiredset or str or airflow.utils.weekday.WeekDayDay of the week to check (full name). Optionally, a set of days can also be provided using a set. Example values: "MONDAY", {"Saturday", "Sunday"} {WeekDay.TUESDAY} {WeekDay.SATURDAY, WeekDay.SUNDAY}
use_task_execution_dayboolIf True, uses task’s execution day to compare with is_today. Execution Date is Useful for backfilling. If False, uses system’s day of the week.

Documentation

Branches into one of two lists of tasks depending on the current day. For more information on how to use this operator, take a look at the guide: BranchDayOfWeekOperator

Was this page helpful?