Skip to content

Commit

Permalink
fix check_clients_are_healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Apr 16, 2024
1 parent 7c7c1a8 commit 0a54405
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/coordinator/tasks/check_clients_are_healthy/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,12 @@ func (t *Task) processCheck() {

switch {
case t.config.MaxUnhealthyCount > -1 && len(failedClients) >= t.config.MaxUnhealthyCount:
if t.config.FailOnCheckMiss {
switch {
case t.config.FailOnCheckMiss:
t.ctx.SetResult(types.TaskResultFailure)
} else {
case resultPass:
t.ctx.SetResult(types.TaskResultSuccess)
default:
t.ctx.SetResult(types.TaskResultNone)
}
case resultPass:
Expand Down

0 comments on commit 0a54405

Please sign in to comment.