raphaelauv opened a new pull request, #70480:
URL: https://github.com/apache/airflow/pull/70480
time_to_wait should be templated so we can do
```python
from airflow.sdk import DAG, Param
from airflow.providers.standard.sensors.time_delta import WaitSensor
with DAG(
dag_id="my_dag",
start_date=datetime(2024, 1, 1),
schedule=None,
catchup=False,
params={
"duration_minutes": Param(
default=30,
type="integer",
minimum=1,
description="Duration in minutes to wait.",
)
},
):
WaitSensor(
task_id="wait_for_duration",
time_to_wait="{{ params.duration_minutes }}",
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]