Skip to content

Commit 0a54405

Browse files
committed
fix check_clients_are_healthy
1 parent 7c7c1a8 commit 0a54405

File tree

1 file changed

+5
-2
lines changed
  • pkg/coordinator/tasks/check_clients_are_healthy

1 file changed

+5
-2
lines changed

pkg/coordinator/tasks/check_clients_are_healthy/task.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ func (t *Task) processCheck() {
128128

129129
switch {
130130
case t.config.MaxUnhealthyCount > -1 && len(failedClients) >= t.config.MaxUnhealthyCount:
131-
if t.config.FailOnCheckMiss {
131+
switch {
132+
case t.config.FailOnCheckMiss:
132133
t.ctx.SetResult(types.TaskResultFailure)
133-
} else {
134+
case resultPass:
135+
t.ctx.SetResult(types.TaskResultSuccess)
136+
default:
134137
t.ctx.SetResult(types.TaskResultNone)
135138
}
136139
case resultPass:

0 commit comments

Comments
 (0)