API for rolling back a job update has been integrated.

This commit is contained in:
Renan DelValle 2016-09-30 00:44:38 -04:00
parent 97f9c05026
commit ca8b9359cf
2 changed files with 19 additions and 0 deletions

View file

@ -238,6 +238,15 @@ func main() {
}
fmt.Println(resp.String())
break
case "rollbackUpdate":
fmt.Println("Abort update")
resp, err := r.RollbackJobUpdate(aurora.JobUpdateKey{job.JobKey(), *updateId}, "")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Println(resp.String())
break
case "taskConfig":
fmt.Println("Getting job info")
config, err := r.FetchTaskConfig(aurora.InstanceKey{job.JobKey(), 0})