Complete the airflow survey & get a free airflow 3 certification!

airflow.providers.standard.sensors.time

Classes

StartTriggerArgs

Arguments required for start task execution from triggerer.

TimeSensor

Waits until the specified time of the day.

TimeSensorAsync

Deprecated. Use TimeSensor with deferrable=True instead.

Module Contents

class airflow.providers.standard.sensors.time.StartTriggerArgs[source]

Arguments required for start task execution from triggerer.

trigger_cls: str[source]
next_method: str[source]
trigger_kwargs: dict[str, Any] | None = None[source]
next_kwargs: dict[str, Any] | None = None[source]
timeout: datetime.timedelta | None = None[source]
class airflow.providers.standard.sensors.time.TimeSensor(*, target_time, deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), start_from_trigger=False, end_from_trigger=False, trigger_kwargs=None, **kwargs)[source]

Bases: airflow.providers.standard.version_compat.BaseSensorOperator

Waits until the specified time of the day.

Parameters:
  • target_time (datetime.time) – time after which the job succeeds

  • deferrable (bool) – whether to defer execution

See also

For more information on how to use this sensor, take a look at the guide: TimeSensor

start_trigger_args[source]
start_from_trigger = False[source]
target_datetime = None[source]
deferrable = True[source]
end_from_trigger = False[source]
execute(context)[source]

Derive when creating an operator.

The main method to execute the task. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

execute_complete(context, event=None)[source]
poke(context)[source]

Override when deriving this class.

class airflow.providers.standard.sensors.time.TimeSensorAsync(**kwargs)[source]

Bases: TimeSensor

Deprecated. Use TimeSensor with deferrable=True instead.

Sphinx-autoapi-skip:

Was this entry helpful?