Skip to content

atelet: Wait for superseded uploads to stop - #2833

Merged
Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
msau42:wait-superseded-uploads
Oct 21, 2026
Merged

Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
msau42:wait-superseded-uploads

Conversation

@msau42

@msau42 Michelle Au (msau42) commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

When a Checkpoint with an immediate upload, or a PromoteSnapshot, makes
a snapshot durable, atelet now cancels any upload of an older snapshot
still in progress and waits for it to stop before returning. As during
a PromoteSnapshot, no background upload starts while a Checkpoint with
an immediate upload runs.

Once the control plane learns that a newer snapshot is durable, atelet
is no longer uploading an older snapshot in the background, so the
control plane can delete its objects.

Once the new snapshot is committed, the canceled upload deletes the
older snapshot's local copy before the Checkpoint or PromoteSnapshot
returns. Only a Run or Restore in progress, which may read any local
snapshot, keeps a superseded local copy.

Part of #2069 and #2571

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@msau42

Copy link
Copy Markdown
Collaborator Author

Moving to draft as it currently depends on #2890

@msau42
Michelle Au (msau42) force-pushed the wait-superseded-uploads branch 4 times, most recently from 8093913 to a7635d9 Compare October 20, 2026 05:00
@msau42

Copy link
Copy Markdown
Collaborator Author

Depends on #2943

When a Checkpoint with an immediate upload, or a PromoteSnapshot, makes
a snapshot durable, atelet now cancels any upload of an older snapshot
still in progress and waits for it to stop before returning. As during
a PromoteSnapshot, no background upload starts while a Checkpoint with
an immediate upload runs.

Once the control plane learns that a newer snapshot is durable, atelet
is no longer uploading an older snapshot in the background, so the
control plane can delete its objects.

Once the new snapshot is committed, the canceled upload deletes the
older snapshot's local copy before the Checkpoint or PromoteSnapshot
returns. Only a Run or Restore in progress, which may read any local
snapshot, keeps a superseded local copy.
@msau42
Michelle Au (msau42) marked this pull request as ready for review October 20, 2026 17:19
@zoez7
Zoe Zhao (zoez7) added this pull request to the merge queue Oct 20, 2026
Merged via the queue into agent-substrate:main with commit 341037d Oct 21, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants