From: Aaron Schulz Date: Thu, 19 Dec 2013 19:20:08 +0000 (-0800) Subject: Include delayed job count in showJobs.php X-Git-Tag: 1.31.0-rc.0~17563^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=fadda730a8f03db97d3ca0aac17f321933798fc8;p=lhc%2Fweb%2Fwiklou.git Include delayed job count in showJobs.php Change-Id: Ia6c0db44855d7b04430def8f6935fca64dd5b42c --- 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" ); } }