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