Repository navigation
feat(resumption): check pause state and worker claim on each batch iteration - #926
Merged
andrzejfudro merged 1 commit intoSep 22, 2026
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces resumption metadata (run ID and resumption time) to task queue payloads and adds mid-loop safety checks (re-pause, run ID changes, and worker fencing) to the resumption worker. It also updates the Redis publisher interface to return errors and propagates them. The review feedback highlights three potential nil pointer dereferences that could lead to runtime panics: when accessing the pause state in the resumption worker, when handling a nil action in the task queue client, and when applying resumption metadata options to a nil metadata pointer.
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
2 times, most recently
from
September 21, 2026 12:30
14f0ce3 to
9f24988
Compare
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 12:34
9f24988 to
98e2371
Compare
This was referenced Sep 21, 2026
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 12:41
98e2371 to
d6ead79
Compare
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
2 times, most recently
from
September 21, 2026 12:57
80610e4 to
de95c23
Compare
andrzejfudro
changed the base branch from
feat/ess-resumption-worker-loop
to
feat/task-queue-add-message-error
September 21, 2026 12:58
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 13:10
de95c23 to
f07e931
Compare
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 13:27
f07e931 to
b945a48
Compare
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 13:32
b945a48 to
a3e2f93
Compare
…play on each batch
andrzejfudro
force-pushed
the
feat/ess-resumption-fencing-and-metadata
branch
from
September 21, 2026 14:27
a3e2f93 to
7293f75
Compare
andrzejfudro
marked this pull request as ready for review
September 21, 2026 14:31
pachopepe
approved these changes
Sep 21, 2026
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.
Summary
shouldStopReplayinResumptionWorker.runBatchLoopto check on every batch iteration whether scheduling has been re-paused, whetherResumptionRunIDhas changed, or whether another worker has claimedResumptionWorkerID, halting the loop gracefully if so.TestResumptionWorker_MidLoopTermination) covering mid-resumption re-pause, run ID change, and worker ID preemption across batches.Stacked on #937.
TAG=agy
CONV=7f1eb701-864f-489a-ad0e-57b1c6f25a2e