Ejemplo n.º 1
0
 def __init__(
     self,
     *,
     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,
 ) -> None:
     super().__init__(**kwargs)
     self.follow_task_ids_if_true = follow_task_ids_if_true
     self.follow_task_ids_if_false = follow_task_ids_if_false
     self.week_day = week_day
     self.use_task_execution_day = use_task_execution_day
     self._week_day_num = WeekDay.validate_week_day(week_day)
Ejemplo n.º 2
0
 def __init__(self,
              *,
              week_day,
              use_task_logical_date=False,
              use_task_execution_day=False,
              **kwargs):
     super().__init__(**kwargs)
     self.week_day = week_day
     self.use_task_logical_date = use_task_logical_date
     if use_task_execution_day:
         self.use_task_logical_date = use_task_execution_day
         warnings.warn(
             "Parameter ``use_task_execution_day`` is deprecated. Use ``use_task_logical_date``.",
             DeprecationWarning,
             stacklevel=2,
         )
     self._week_day_num = WeekDay.validate_week_day(week_day)
Ejemplo n.º 3
0
 def __init__(
     self,
     *,
     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_logical_date: bool = False,
     use_task_execution_day: bool = False,
     **kwargs,
 ) -> None:
     super().__init__(**kwargs)
     self.follow_task_ids_if_true = follow_task_ids_if_true
     self.follow_task_ids_if_false = follow_task_ids_if_false
     self.week_day = week_day
     self.use_task_logical_date = use_task_logical_date
     if use_task_execution_day:
         self.use_task_logical_date = use_task_execution_day
         warnings.warn(
             "Parameter ``use_task_execution_day`` is deprecated. Use ``use_task_logical_date``.",
             DeprecationWarning,
             stacklevel=2,
         )
     self._week_day_num = WeekDay.validate_week_day(week_day)
Ejemplo n.º 4
0
 def __init__(self, *, week_day, use_task_execution_day=False, **kwargs):
     super().__init__(**kwargs)
     self.week_day = week_day
     self.use_task_execution_day = use_task_execution_day
     self._week_day_num = WeekDay.validate_week_day(week_day)