Skip to content

Conversation

@github-actions
Copy link

  • Set ti.end_date before creating TaskState in exception handlers
  • Ensures on_failure_callback context has proper end_date and duration
  • Fixes race condition where callbacks received incomplete TaskInstance data
  • Add test to verify callback context contains required timing information
  • Enhance task callbacks to include end_date and duration metrics
    (cherry picked from commit eda89ae)

Co-authored-by: Ranuga Disansa 79456372+Programmer-RD-AI@users.noreply.github.com

…efore invoking failure callbacks (#52729)

* Fix: Set TaskInstance end_date before failure callbacks (#52630)

- Set ti.end_date before creating TaskState in exception handlers
- Ensures on_failure_callback context has proper end_date and duration
- Fixes race condition where callbacks received incomplete TaskInstance data
- Add test to verify callback context contains required timing information

* Enhance task callbacks to include end_date and duration metrics
(cherry picked from commit eda89ae)

Co-authored-by: Ranuga Disansa <79456372+Programmer-RD-AI@users.noreply.github.com>
@kaxil kaxil merged commit b6a11e7 into v3-0-test Aug 13, 2025
50 checks passed
@kaxil kaxil deleted the backport-eda89ae-v3-0-test branch August 13, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants