waterWang opened a new pull request, #71256:
URL: https://github.com/apache/airflow/pull/71256

   ## Description
   
   When `soft_fail=True`, deferred sensors currently skip on **all** 
exceptions, while non-deferred (`poke`/`reschedule` mode) sensors only skip on 
timeout-related exceptions (`AirflowSensorTimeout`, `AirflowTaskTimeout`, 
`AirflowFailException`) and let unexpected errors propagate.
   
   This behavior gap means operators cannot distinguish between a sensor 
timeout (legitimate skip) and a sensor misconfiguration or unexpected error 
when using deferred mode with `soft_fail=True`.
   
   ## Fix
   
   In `BaseSensorOperator.resume_execution()`, split the exception handling 
into two tiers matching the `execute()` method:
   
   1. **Timeout-related exceptions** (`AirflowSensorTimeout`, 
`AirflowTaskTimeout`, `AirflowFailException`) → `soft_fail` and `never_fail` 
apply (skip)
   2. **Other exceptions** (`AirflowException`, `TaskDeferralError`) → only 
`never_fail` applies (not `soft_fail`)
   
   ## Related issue
   
   Closes #71255


-- 
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]

Reply via email to