raphaelauv commented on issue #40528:
URL: https://github.com/apache/airflow/issues/40528#issuecomment-5219864114
Feature is still missing in airflow 3.3.0
```python
from datetime import datetime, timedelta
from airflow.sdk import DAG, timezone
from airflow.providers.standard.sensors.time import TimeSensor
from pendulum import today
with DAG(
dag_id='example_defer',
schedule=None,
max_active_tasks=1,
disable_bundle_versioning=True,
start_date=today("UTC").add(days=-1)):
for i in range(10):
TimeSensor(
task_id=f"a_{i}",
target_time=(datetime.now(tz=timezone.utc) +
timedelta(minutes=10)).time(),
deferrable=True,
)
```
--
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]