Remove health check filter from Marathon tasks.
This commit is contained in:
parent
7d3dd5a0e4
commit
17e85e31cd
3 changed files with 0 additions and 58 deletions
|
@ -153,18 +153,6 @@ func (p *Provider) taskFilter(task marathon.Task, application marathon.Applicati
|
|||
return false
|
||||
}
|
||||
|
||||
// Filter task with existing, bad health check results.
|
||||
if application.HasHealthChecks() {
|
||||
if task.HasHealthCheckResults() {
|
||||
for _, healthCheck := range task.HealthCheckResults {
|
||||
if !healthCheck.Alive {
|
||||
log.Debugf("Filtering Marathon task %s from application %s with bad health check", task.ID, application.ID)
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ready := p.readyChecker.Do(task, application); !ready {
|
||||
log.Infof("Filtering unready task %s from application %s", task.ID, application.ID)
|
||||
return false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue