Skip to content

Commit

Permalink
ensure tier2 requests when running last stage create ALL fullkv store…
Browse files Browse the repository at this point in the history
…s, even those which already exist as partialKV
  • Loading branch information
sduchesneau committed Jan 7, 2025
1 parent 6227346 commit ecb3208
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/tier2.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ func GetExecutionPlan(
if err != nil {
return nil, fmt.Errorf("checking partial file existence: %w", err)
}
if !partialStoreExists {
// when running last stage, we want to make sure that we write all the fullKV stores.
// in other scenarios, a partial store is enough so we won't produce it again if it's not needed.
if !partialStoreExists || runningLastStage {
storesToWrite[name] = struct{}{}
requiredModules[name] = usedModules[name]
}
Expand Down

0 comments on commit ecb3208

Please sign in to comment.