Tolarate negative values when calculating job scale progress

pull/8/head
Maciej Szulik 2018-05-18 15:35:37 +02:00
parent 1b950d1e8e
commit 6eb69dfff7
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func jobHasDesiredParallelism(jobClient batchclient.JobsGetter, job *batch.Job)
// otherwise count successful
progress := *job.Spec.Completions - job.Status.Active - job.Status.Succeeded
return progress == 0, nil
return progress <= 0, nil
}
}