Ignore stale executor success when TI is queued after defer#68741
Open
goingforstudying-ctrl wants to merge 1 commit into
Open
Ignore stale executor success when TI is queued after defer#68741goingforstudying-ctrl wants to merge 1 commit into
goingforstudying-ctrl wants to merge 1 commit into
Conversation
eed2ad5 to
2e53123
Compare
shahar1
previously requested changes
Jun 19, 2026
shahar1
left a comment
Contributor
There was a problem hiding this comment.
PR title shouldn't use conventional commit style, please fix it as well.
75126b1 to
b290d48
Compare
Author
|
Thanks for the review. I updated the commit message to remove the conventional commit style from the PR title as requested. Let me know if anything else needs adjustment. |
26f4b79 to
021cf9c
Compare
021cf9c to
2f2f410
Compare
Author
|
Fixed the PR title to remove conventional commit style. Let me know if anything else needs adjustment. |
2f2f410 to
8b08e8a
Compare
ac01a8f to
3cec1ac
Compare
When a task is deferred and later rescheduled into QUEUED state before the scheduler processes a stale SUCCESS event from the executor, the scheduler should ignore the stale success rather than incorrectly marking the task as succeeded. - Add guard in _process_executor_events to check current TI state - Add test for stale success after defer -> queued transition Fixes apache#67287
3cec1ac to
33dff37
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a race where the trigger resumes a deferred task to
queued(rather thanscheduled) before the scheduler processes the executor SUCCESS from the worker defer exit. The scheduler then treatedqueuedvs executorsuccessas a state mismatch and failed the TI (#67287).The fix for #66374 (#66431) added handling for the
scheduledvariant. Under load the trigger may reschedule into eitherqueuedorscheduleddepending on scheduler loop timing, so both states must be treated as stale defer-exit events whennext_methodis set.Changes:
ti_requeuedcondition inprocess_executor_eventsto includeTaskInstanceState.QUEUEDtest_process_executor_events_stale_success_when_queued_after_defer(positive + negative withoutnext_method)67287.bugfix.rstTesting: