BranchDayOfWeekOperator(*, follow_task_ids_if_true: Union[str, Iterable[str]], follow_task_ids_if_false: Union[str, Iterable[str]], week_day: Union[str, Iterable[str]], use_task_execution_day: bool = False, **kwargs)¶
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
Day of the week to check (full name). Optionally, a set of days can also be provided using a set. Example values:
use_task_execution_day (bool) -- If
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.
choose_branch(self, context: Dict)¶