Changing fetch task status to only return live instances.

This commit is contained in:
Renan DelValle 2019-03-19 15:35:53 -07:00
parent 616d4bc57e
commit ada7eb3aa1
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 6 additions and 2 deletions

View file

@ -151,7 +151,11 @@ func fetchTasksStatus(cmd *cobra.Command, args []string) {
role = nil
}
//TODO: Add filtering down by status
taskQuery := &aurora.TaskQuery{Environment: env, Role: role, JobName: name}
taskQuery := &aurora.TaskQuery{
Environment: env,
Role: role,
JobName: name,
Statuses: aurora.LIVE_STATES}
tasks, err := client.GetTaskStatus(taskQuery)
if err != nil {

View file

@ -31,7 +31,7 @@ var message = new(string)
var updateID string
var log = logrus.New()
const australisVer = "v0.0.8"
const australisVer = "v0.0.6"
var monitorInterval, monitorTimeout time.Duration