We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
check_clients_are_healthy
1 parent 7c7c1a8 commit 0a54405Copy full SHA for 0a54405
pkg/coordinator/tasks/check_clients_are_healthy/task.go
@@ -128,9 +128,12 @@ func (t *Task) processCheck() {
128
129
switch {
130
case t.config.MaxUnhealthyCount > -1 && len(failedClients) >= t.config.MaxUnhealthyCount:
131
- if t.config.FailOnCheckMiss {
+ switch {
132
+ case t.config.FailOnCheckMiss:
133
t.ctx.SetResult(types.TaskResultFailure)
- } else {
134
+ case resultPass:
135
+ t.ctx.SetResult(types.TaskResultSuccess)
136
+ default:
137
t.ctx.SetResult(types.TaskResultNone)
138
}
139
case resultPass:
0 commit comments