Changing monitoring from instances to update monitoring.

This commit is contained in:
Renan DelValle 2017-11-30 08:32:26 -08:00
parent ae2e082248
commit ac0a432f5d

View file

@ -196,7 +196,7 @@ func main() {
} }
fmt.Println(resp.String()) fmt.Println(resp.String())
if ok, err := monitor.Instances(job.JobKey(), job.GetInstanceCount(), 5, 50); !ok || err != nil { if ok, err := monitor.JobUpdate(*resp.GetKey(), 5, 50); !ok || err != nil {
_, err := r.KillJob(job.JobKey()) _, err := r.KillJob(job.JobKey())
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)