Task query optional parameters (#69)
* Change TaskQuery struct parameters to optional * Thrift API is modified to make all the parameters in the TaskQuery struct optional * Autogenerated code is regenerated * Changes in TaskQuery structs used in the project * Now that TaskQuery receive optional values, pointers instead of values must be passed to the struct
This commit is contained in:
parent
6c8ab10b64
commit
fe567ee966
5 changed files with 253 additions and 162 deletions
|
@ -553,9 +553,9 @@ func main() {
|
|||
case "taskStatus":
|
||||
fmt.Println("Getting task status")
|
||||
taskQ := &aurora.TaskQuery{
|
||||
Role: job.JobKey().Role,
|
||||
Environment: job.JobKey().Environment,
|
||||
JobName: job.JobKey().Name,
|
||||
Role: &job.JobKey().Role,
|
||||
Environment: &job.JobKey().Environment,
|
||||
JobName: &job.JobKey().Name,
|
||||
}
|
||||
tasks, err := r.GetTaskStatus(taskQ)
|
||||
if err != nil {
|
||||
|
@ -567,9 +567,9 @@ func main() {
|
|||
case "tasksWithoutConfig":
|
||||
fmt.Println("Getting task status")
|
||||
taskQ := &aurora.TaskQuery{
|
||||
Role: job.JobKey().Role,
|
||||
Environment: job.JobKey().Environment,
|
||||
JobName: job.JobKey().Name,
|
||||
Role: &job.JobKey().Role,
|
||||
Environment: &job.JobKey().Environment,
|
||||
JobName: &job.JobKey().Name,
|
||||
}
|
||||
tasks, err := r.GetTasksWithoutConfigs(taskQ)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue