Refactor BaseSensorOperator
to support Reschedule mode with Task SDK
#45580
Labels
area:core-operators
Operators, Sensors and hooks within Core Airflow
area:task-execution-interface-aip72
AIP-72: Task Execution Interface (TEI) aka Task SDK
area:task-sdk
BaseSensorOperator
has some logic to usemax_tries
from Context as well as access DB directly. This won't work with Task SDK and as such DAGs likeexample_sensor_decorator
will fail.airflow/airflow/sensors/base.py
Lines 219 to 243 in 6844cce
The
max_tries
is easier since we can pass it we can in the following code and re-generate the API client.airflow/airflow/executors/workloads.py
Lines 42 to 52 in 168f765
Replacing direct DB access in that
BaseSensorOperator
, on the other hand, needs to be figured out!The text was updated successfully, but these errors were encountered: