DateTimeSensor

Apache Airflow Certified

Waits until the specified datetime.

View on GitHub

Last Updated: May. 27, 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

target_timeRequiredstr or datetime.datetimedatetime after which the job succeeds. (templated)

Documentation

Waits until the specified datetime.

A major advantage of this sensor is idempotence for the target_time. It handles some cases for which TimeSensor and TimeDeltaSensor are not suited.

param target_time

datetime after which the job succeeds. (templated)

type target_time

str or datetime.datetime

Was this page helpful?