my $op_move_to;
my $queue_name;
+my $attention;
my $filenames;
my $given_job;
my $summary;
--move-to=<queue> Move jobs to a different queue
Options:
+-a, --attn Show jobs needing attention (e.g., failures)
-f, --filenames Show filenames of jobs and log files
-j, --job=<id> Act on the specified job (default: on all)
-q, --queue=<name> Act on the given queue
"h|by-host!" => \$op_by_host,
"rm!" => \$op_rm,
"move-to=s" => \$op_move_to,
+ "a|attn!" => \$attention,
"f|filenames!" => \$filenames,
"j|job=s" => \$given_job,
"q|queue=s" => \$queue_name,
for my $j (@{$machs{$m}}) {
my $st = $queue->read_job_status($m, $j);
my $s = $st->{"Status"} // "UNKNOWN";
+ if ($attention) { next if $s =~ m{^(NEW|NOPING)$}; }
$cnt_by_job{$j}{$s}++;
$cnt_by_mach{$m}{$s}++;
$why{$m}{$j} = "";