Skip to content

Commit

Permalink
Update preempt.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaI authored Nov 5, 2024
1 parent 0950cb2 commit 86f5010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/armadactl/cmd/preempt.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ func preemptExecutorCmd() *cobra.Command {
return fmt.Errorf("error reading priority-class selection: %s", err)
}

matchQueues, err := cmd.Flags().GetStringSlice("queues")
queues, err := cmd.Flags().GetStringSlice("queues")
if err != nil {
return fmt.Errorf("error reading queue selection: %s", err)
}

return a.PreemptOnExecutor(onExecutor, matchQueues, priorityClasses)
return a.PreemptOnExecutor(onExecutor, queues, priorityClasses)
},
}
cmd.Flags().StringSliceP("queues", "q", []string{}, "Preempt jobs on executor matching the specified queue names. If no queues are provided, jobs across all queues will be preempted.")
cmd.Flags().StringSliceP("queues", "q", []string{}, "Preempt jobs on executor matching the specified queue names. If no queues are provided, jobs across all queues will be preempted. Provided queues should be comma separated, as in the following example: queueA,queueB,queueC.")

Check failure on line 73 in cmd/armadactl/cmd/preempt.go

View workflow job for this annotation

GitHub Actions / lint / Lint Go

line is 279 characters (lll)
cmd.Flags().StringSliceP("priority-classes", "p", []string{}, "Preempt jobs on executor matching the specified priority classes.")
return cmd
}

0 comments on commit 86f5010

Please sign in to comment.