Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/102738


Change subject: Include delayed job count in showJobs.php
......................................................................

Include delayed job count in showJobs.php

Change-Id: Ia6c0db44855d7b04430def8f6935fca64dd5b42c
---
M maintenance/showJobs.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/38/102738/1

diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php
index afd7c74..5e21130 100644
--- a/maintenance/showJobs.php
+++ b/maintenance/showJobs.php
@@ -56,14 +56,16 @@
                } 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"
                                        );
                                }
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/102738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6c0db44855d7b04430def8f6935fca64dd5b42c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to