Adding VariableBatchStep api which allows users to find the current step at which an update using the Variable Batch strategy is currently in.

This commit is contained in:
Renan DelValle 2019-08-29 18:06:43 -07:00
parent f43a257726
commit a4b89feb0e
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 55 additions and 0 deletions

View file

@ -451,6 +451,13 @@ func main() {
}
fmt.Println(resp.String())
case "variableBatchStep":
step, err := r.VariableBatchStep(aurora.JobUpdateKey{Job: job.JobKey(), ID: updateId})
if err != nil {
log.Fatal(err)
}
fmt.Println(step)
case "taskConfig":
fmt.Println("Getting job info")
live, err := r.GetInstanceIds(job.JobKey(), aurora.ACTIVE_STATES)