Repository navigation
Wake a READY session's quiesced actor on ResumeSession - #23
Merged
Merged
Conversation
Idle quiescence suspends or pauses a Session's actor but keeps the Session READY/NONE. GetSession then has no running runtime association, and ResumeSession was a no-op for READY, so a caller that must attest the exact running actor before dispatch had no supported way to wake it. ResumeSession on a READY Session now observes the current generation's actor. A running actor needs no work. A suspended or paused one gets a fenced RESUME operation on the same generation and actor UID, admitted under the Session lock. The operation closes dispatch, idle work, checkpoints and other lifecycle work until it finishes, and an uncertain attempt stays pending for a retry to reconcile. Activation never changes Session, context or generation identity and never creates compute. It is refused for a changed actor, a revoked generation, an active turn or dispatch, pending idle work, or an actor in a transitional state. GetSession stays observational. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
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.
What changed
ResumeSessionon a READY session whose actor idle quiescence suspended or paused now wakes that same actor. It runs as a fenced RESUME lifecycle operation: same generation, actor UID and context, with the existingverifyActorchecks. It refuses a changed UID, a revoked generation, live dispatch, an active turn, pending quiescence or a transitional actor. An uncertain outcome keeps the operation pending, and a retry reconciles it.GetSessionstays read-only, and there's no proto change.Proven / not proven
-raceagainst real PostgreSQL and faked actors. Independent review accepted the change.ResumeActorcall on a real suspended actor.