Propagate cancellation and preserve resumable state
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user