From 86f50109872310a9fd709fe8aed562f5e8133b44 Mon Sep 17 00:00:00 2001 From: Mustafa Ilyas Date: Tue, 5 Nov 2024 09:15:59 +0000 Subject: [PATCH] Update preempt.go --- cmd/armadactl/cmd/preempt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/armadactl/cmd/preempt.go b/cmd/armadactl/cmd/preempt.go index 06bc09a1e2a..d6de351b12e 100644 --- a/cmd/armadactl/cmd/preempt.go +++ b/cmd/armadactl/cmd/preempt.go @@ -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.") cmd.Flags().StringSliceP("priority-classes", "p", []string{}, "Preempt jobs on executor matching the specified priority classes.") return cmd }