Skip to content

Delete local snapshots when an actor is terminated - #1246

Merged
Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
laoj2:actorsnapshots-gc
Aug 27, 2026
Merged

Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
laoj2:actorsnapshots-gc

Conversation

@laoj2

Copy link
Copy Markdown
Collaborator

We were leaking snapshots after actor termination.

Note that this is a temporary fix: it only removes local snapshots in one node. We should clean up the copies on any other NodeVmsWithLocalSnapshots. This is fine as of the day this was written because today NodeVmsWithLocalSnapshots has at most one item.

Related to #668 and #664

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

Comment thread cmd/atelet/main.go Resolved
We were leaking snapshots after actor termination.

Note that this is a temporary fix: it only removes local snapshots in one node. We should clean up the copies on any other NodeVmsWithLocalSnapshots. This is fine *as of the day this was written* because today NodeVmsWithLocalSnapshots has at  most one item.
@zoez7
Zoe Zhao (zoez7) merged commit 801e065 into agent-substrate:main Aug 27, 2026
9 checks passed
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