Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions providers/standard/docs/sensors/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,13 @@ TimeDeltaSensor

Use the :class:`~airflow.providers.standard.sensors.time_delta.TimeDeltaSensor` to end sensing after specific time.


.. exampleinclude:: /../src/airflow/providers/standard/example_dags/example_sensors.py
:language: python
:dedent: 4
:start-after: [START example_time_delta_sensor]
:end-before: [END example_time_delta_sensor]


.. _howto/operator:TimeDeltaSensorAsync:

TimeDeltaSensorAsync
====================

Use the :class:`~airflow.providers.standard.sensors.time_delta.TimeDeltaSensorAsync` to end sensing after specific time.
It is an async version of the operator and requires Triggerer to run.


.. exampleinclude:: /../src/airflow/providers/standard/example_dags/example_sensors.py
:language: python
:dedent: 4
:start-after: [START example_time_delta_sensor_async]
:end-before: [END example_time_delta_sensor_async]
To run the sensor in deferrable mode, set ``deferrable=True``. See :ref:`deferring/writing` for more information.



Expand Down