Propagate cancellation and preserve resumable state

This commit is contained in:
2026-11-20 05:53:49 +00:00
parent a6c6f1e4ab
commit c7a5ff316d
21 changed files with 356 additions and 27 deletions

View File

@@ -129,6 +129,7 @@ func restoreSessionState(ctx context.Context, cfg *config.Config, opts RestorePl
}
result, err := deps.executeRestorePlan(ctx, cfg, current, plan, report, objectStore)
err = errors.Join(err, ctx.Err())
if err != nil {
report.setFailed(err)
if _, reportErr := persistRestoreReport(artifactStore, cfg, report); reportErr != nil {