collinmcnulty commented on issue #28865:
URL: https://github.com/apache/airflow/issues/28865#issuecomment-1468815077
@uranusjr
```
import pendulum
from airflow.decorators import dag, task
from airflow.sensors.time_delta import TimeDeltaSensorAsync
@dag(
default_args={'retries': 2},
schedule_interval=None,
start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
catchup=False,
)
def waiting_dag():
a = TimeDeltaSensorAsync(task_id="waiting",
delta=pendulum.duration(seconds=10))
waiting_dag()
```
And then I ran the command `airflow tasks test waiting_dag waiting`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]