Changing some of the API to allow killing of a single task

Updated AddInstances command to now use InstanceKey allow flexibility

Removing line that's not needed
This commit is contained in:
Renan DelValle 2016-08-09 13:44:54 -07:00
parent 2fd52399b0
commit dcfced9ad7
3 changed files with 21 additions and 9 deletions

View file

@ -117,7 +117,7 @@ func main() {
break
case "flexUp":
fmt.Println("Flexing up job")
response, err := r.AddInstances(job.JobKey(), 5)
response, err := r.AddInstances(&aurora.InstanceKey{job.JobKey(), 0}, 5)
if err != nil {
fmt.Print(err)
}