Skip to content

Conversation

@varundeepsaini
Copy link
Contributor

@varundeepsaini varundeepsaini commented Dec 6, 2025

Closes: #4090

Changes

Add write-ahead log (WAL) to record state changes during direct deployment, enabling recovery of partial state if deployment is interrupted.

Added an Offset To KillCaller. Now it starts killing the process after Offset Successful requests to the endpoint

Why

Today, if deployment is interrupted before Finalize(), no state is saved, and created resources become orphaned. The WAL writes each state change immediately to disk and replays them on restart.

Tests

Tests added for WAL save/replay, delete/replay, finalize cleanup, and edge cases.

@varundeepsaini varundeepsaini force-pushed the feature/deploy-append-log branch 2 times, most recently from b51a199 to 7f67cb2 Compare December 6, 2025 19:08
@varundeepsaini
Copy link
Contributor Author

@denik
Had a question, should the WAL be written to a new file, or should it be on the same file as the state ?
If a new file, then any write/read ops to the WAL that give an error, how should they be handled?

Signed-off-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>
@varundeepsaini varundeepsaini force-pushed the feature/deploy-append-log branch from 7f67cb2 to baf371e Compare January 11, 2026 20:01
@varundeepsaini varundeepsaini marked this pull request as draft January 11, 2026 20:50
Signed-off-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>
@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4106
  • Commit SHA: 86b90ced213284edbd0a48b261b71dffc5259b69

Checks will be approved automatically on success.

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.

State file append log, avoid orphaned resources on interrupted deploy

1 participant