Adding flags to take in JSON from the command line.
This commit is contained in:
parent
1497aca2bb
commit
e0d400e85c
9 changed files with 45 additions and 20 deletions
|
@ -58,7 +58,7 @@ func killJob(cmd *cobra.Command, args []string) {
|
|||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
if ok, err := client.InstancesMonitor(job.JobKey(), 0, 5, 50); !ok || err != nil {
|
||||
if ok, err := client.MonitorInstances(job.JobKey(), 0, 5, 50); !ok || err != nil {
|
||||
log.Fatalln("Unable to kill all instances of job")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue