API for rolling back a job update has been integrated.
This commit is contained in:
parent
97f9c05026
commit
ca8b9359cf
2 changed files with 19 additions and 0 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue