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

@@ -131,7 +131,11 @@ func loadRemoteSessionConfig(ctx context.Context, base *config.LoadedPipelineCam
return nil, fmt.Errorf("remote session %q does not match its committed checksum or size", remoteKey)
}
}
if err := ctx.Err(); err != nil {
return nil, err
}
sessionCfg, err := config.LoadSessionBytesWithOptions("s3://"+s3BucketName(base.Pipeline)+"/"+remoteKey, sessionBytes, sessionOpts)
err = errors.Join(err, ctx.Err())
if err != nil {
return nil, err
}