Skip to content

Commit

Permalink
updated dead code to comment
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rammer <[email protected]>
  • Loading branch information
hamersaw committed Nov 6, 2023
1 parent d628c19 commit 4817d72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flyteplugins/go/tasks/plugins/array/core/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ func SummaryToPhase(ctx context.Context, minSuccesses int64, summary arraystatus
logger.Infof(ctx, "Array is still running and waiting for resources totalWaitingForResources[%v]", totalWaitingForResources)
return PhaseWaitingForResources
}
//if totalSuccesses >= minSuccesses && totalRunning == 0 && totalRetryableFailures == 0 {

// if we have enough successes, ensure all tasks are in a terminal phase (success or failure)
// before transitioning to the next phase.
if totalSuccesses >= minSuccesses && totalSuccesses+totalPermanentFailures == totalCount {
logger.Infof(ctx, "Array succeeded because totalSuccesses[%v] >= minSuccesses[%v]", totalSuccesses, minSuccesses)
return PhaseWriteToDiscovery
Expand Down

0 comments on commit 4817d72

Please sign in to comment.