Skip to content

[v3-1-test] Fix deferrable sensors not respecting soft_fail on timeout (#61132)#61421

Merged
potiuk merged 1 commit intov3-1-testfrom
backport-cec8ba6-v3-1-test
Feb 18, 2026
Merged

[v3-1-test] Fix deferrable sensors not respecting soft_fail on timeout (#61132)#61421
potiuk merged 1 commit intov3-1-testfrom
backport-cec8ba6-v3-1-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Feb 4, 2026

When a deferrable sensor with soft_fail=True times out, the task
fails with AirflowSensorTimeout instead of being marked as SKIPPED.
This is a regression from Airflow 2.x behavior.

The issue was in resume_execution() where TaskDeferralTimeout was
converted to AirflowSensorTimeout before checking soft_fail. This
fix uses nested exception handling to check soft_fail and never_fail
before the conversion, ensuring timeouts are properly skipped.

closes: #61130
(cherry picked from commit cec8ba6)

Co-authored-by: Nathan Hadfield nathan.hadfield@king.com
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

#61132)

When a deferrable sensor with soft_fail=True times out, the task
fails with AirflowSensorTimeout instead of being marked as SKIPPED.
This is a regression from Airflow 2.x behavior.

The issue was in resume_execution() where TaskDeferralTimeout was
converted to AirflowSensorTimeout before checking soft_fail. This
fix uses nested exception handling to check soft_fail and never_fail
before the conversion, ensuring timeouts are properly skipped.

closes: #61130
(cherry picked from commit cec8ba6)

Co-authored-by: Nathan Hadfield <nathan.hadfield@king.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@kaxil kaxil marked this pull request as ready for review February 4, 2026 01:05
@potiuk potiuk merged commit 6254fa6 into v3-1-test Feb 18, 2026
58 checks passed
@potiuk potiuk deleted the backport-cec8ba6-v3-1-test branch February 18, 2026 20:32
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.1.8 milestone Mar 1, 2026
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Mar 2, 2026
vatsrahul1001 pushed a commit that referenced this pull request Mar 4, 2026
#61132) (#61421)

When a deferrable sensor with soft_fail=True times out, the task
fails with AirflowSensorTimeout instead of being marked as SKIPPED.
This is a regression from Airflow 2.x behavior.

The issue was in resume_execution() where TaskDeferralTimeout was
converted to AirflowSensorTimeout before checking soft_fail. This
fix uses nested exception handling to check soft_fail and never_fail
before the conversion, ensuring timeouts are properly skipped.

closes: #61130
(cherry picked from commit cec8ba6)

Co-authored-by: Nathan Hadfield <nathan.hadfield@king.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:task-sdk type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants