Propagate cancellation and preserve resumable state
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
@@ -34,7 +35,7 @@ func finalizeInvocation(runtime *invocationRuntime, operationErr error) (*RunSum
|
||||
// Read durable authority after a failure: checkpoint saves can succeed
|
||||
// even when terminal persistence fails.
|
||||
var err error
|
||||
evidence, err = runtime.manifestStore.Load(runtime.ctx, runtime.manifestPath)
|
||||
evidence, err = runtime.manifestStore.Load(context.WithoutCancel(runtime.ctx), runtime.manifestPath)
|
||||
if err != nil {
|
||||
resultErr = errors.Join(resultErr, fmt.Errorf("read durable run evidence: %w", err))
|
||||
evidence = nil
|
||||
|
||||
Reference in New Issue
Block a user