Skip to content

migration: allow resume finalize on cancelled destination - #2852

Open
Harsh Rawat (rawahars) wants to merge 1 commit into
mainfrom
harshrawat/lm-allow-cancel-finalize
Open

migration: allow resume finalize on cancelled destination#2852
Harsh Rawat (rawahars) wants to merge 1 commit into
mainfrom
harshrawat/lm-allow-cancel-finalize

Conversation

@rawahars

Copy link
Copy Markdown
Contributor

On the destination, a cancelled session previously treated Finalize as a no-op for every action, so the sandbox could never be brought back up on this host after a cancel. However, there are cases where say the VM transfer phase succeeded with a raced cancel and the caller wanted to bring the VM into resume on destination.

For such cases, let a resume finalize fall through instead: it finalizes and resumes the VM and its pods, ending in the finalized state (cleanup then returns to idle), matching the source's post-cancel resume. A non-resume finalize on a cancelled destination stays a no-op.

@rawahars
Harsh Rawat (rawahars) requested a review from a team as a code owner August 4, 2026 07:27
@rawahars
Harsh Rawat (rawahars) force-pushed the harshrawat/lm-allow-cancel-finalize branch from 9916b02 to 6b178a9 Compare August 4, 2026 09:38
On the destination, a cancelled session previously treated Finalize as a
no-op for every action, so the sandbox could never be brought back up on
this host after a cancel. However, there are cases where say the VM transfer phase succeeded with a raced cancel and the caller wanted to bring the VM into resume on destination.

For such cases, let a resume finalize fall through instead: it
finalizes and resumes the VM and its pods, ending in the finalized state
(cleanup then returns to idle), matching the source's post-cancel resume.
A non-resume finalize on a cancelled destination stays a no-op.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars
Harsh Rawat (rawahars) force-pushed the harshrawat/lm-allow-cancel-finalize branch from 6b178a9 to 7417669 Compare August 5, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants