From fadda730a8f03db97d3ca0aac17f321933798fc8 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 19 Dec 2013 11:20:08 -0800 Subject: [PATCH] Include delayed job count in showJobs.php Change-Id: Ia6c0db44855d7b04430def8f6935fca64dd5b42c --- maintenance/showJobs.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php index afd7c745ba..5e2113045b 100644 --- a/maintenance/showJobs.php +++ b/maintenance/showJobs.php @@ -56,14 +56,16 @@ class ShowJobs extends Maintenance { } elseif ( $this->hasOption( 'group' ) ) { foreach ( $group->getQueueTypes() as $type ) { $queue = $group->get( $type ); + $delayed = $queue->getDelayedCount(); $pending = $queue->getSize(); $claimed = $queue->getAcquiredCount(); $abandoned = $queue->getAbandonedCount(); $active = max( 0, $claimed - $abandoned ); - if ( ( $pending + $claimed ) > 0 ) { + if ( ( $pending + $claimed + $delayed ) > 0 ) { $this->output( "{$type}: $pending queued; " . - "$claimed claimed ($active active, $abandoned abandoned)\n" + "$claimed claimed ($active active, $abandoned abandoned); " . + "$delayed delayed\n" ); } } -- 2.20.1