Updating library for compatibility with Aurora 0.16.0 final. Thrift API differs from main Aurora one due to TaskUpdateQuery fields resulting in errors when serialized by thrift as non-optionals.

This commit is contained in:
Renan DelValle 2016-09-29 20:45:24 -04:00
parent 3a78e32e27
commit 3fd957fe5c
15 changed files with 2058 additions and 1020 deletions

View file

@ -73,7 +73,7 @@ func main() {
switch *executor {
case "thermos":
payload, err := ioutil.ReadFile("examples/thermos_payload.json")
payload, err := ioutil.ReadFile("thermos_payload.json")
if err != nil {
fmt.Println("Error reading json config file: ", err)
os.Exit(1)
@ -220,12 +220,14 @@ func main() {
break
case "updateDetails":
resp, err := r.JobUpdateDetails(aurora.JobUpdateKey{job.JobKey(), *updateId})
resp, err := r.JobUpdateDetails(aurora.JobUpdateQuery{
Key: &aurora.JobUpdateKey{job.JobKey(), *updateId}, Limit: 1})
if err != nil {
fmt.Println(err)
os.Exit(1)
}
response.JobUpdateDetails(resp)
fmt.Println(response.JobUpdateDetails(resp))
break
case "abortUpdate":
fmt.Println("Abort update")