Skip to content

Conversation

github-actions[bot]
Copy link

  • Fix retry callbacks not executing for externally killed tasks

When tasks with remaining retries were killed externally the
on_failure_callback was incorrectly executed
instead of on_retry_callback.

The scheduler now correctly sets the callback type to UP_FOR_RETRY when
tasks are eligible to retry, ensuring proper callback and email routing.
For heartbeat timeouts, the task is loaded before evaluating retry
eligibility to access the task's retry configuration.

Fixes #56196

  • fixup! Fix retry callbacks not executing for externally killed tasks
    (cherry picked from commit 04d3c44)

Co-authored-by: Kaxil Naik [email protected]

…asks (#56586)

* Fix retry callbacks not executing for externally killed tasks

When tasks with remaining retries were killed externally the
`on_failure_callback` was incorrectly executed
instead of `on_retry_callback`.

The scheduler now correctly sets the callback type to `UP_FOR_RETRY` when
tasks are eligible to retry, ensuring proper callback and email routing.
For heartbeat timeouts, the task is loaded before evaluating retry
eligibility to access the task's retry configuration.

Fixes #56196

* fixup! Fix retry callbacks not executing for externally killed tasks
(cherry picked from commit 04d3c44)

Co-authored-by: Kaxil Naik <[email protected]>
@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Oct 14, 2025
@kaxil kaxil marked this pull request as ready for review October 14, 2025 00:59
@kaxil kaxil requested review from XD-DENG and ashb as code owners October 14, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant