Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ysysys3074 committed Mar 13, 2024
1 parent 2930b80 commit 237f81c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flyteadmin/pkg/manager/impl/execution_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1466,9 +1466,7 @@ func (m *ExecutionManager) GetExecution(
return nil, err
}
logger.Debugf(ctx, "Before update: launchPlan %v, launchPlan.Spec %v, launchPlan.Spec.GetOverwriteCache() %v", launchPlan, launchPlan.Spec, launchPlan.Spec.GetOverwriteCache())
if !executionSpec.GetOverwriteCache() && launchPlan.Spec.GetOverwriteCache() {
executionSpec.OverwriteCache = launchPlan.Spec.GetOverwriteCache()
}
executionSpec.OverwriteCache = executionSpec.OverwriteCache || launchPlan.Spec.GetOverwriteCache()
logger.Debugf(ctx, "After update: executionSpec %v, executionSpec.OverwriteCache %v", executionSpec, executionSpec.OverwriteCache)

return execution, nil
Expand Down

0 comments on commit 237f81c

Please sign in to comment.