Made showJobs.php show queues with just abandoned jobs too
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Aug 2014 21:13:30 +0000 (14:13 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 21 Aug 2014 17:53:34 +0000 (17:53 +0000)
Change-Id: I7fbf000c9b9edf433ac6723843a96fcaf937b5c7

maintenance/showJobs.php

index 38f346b..b8dc554 100644 (file)
@@ -64,7 +64,7 @@ class ShowJobs extends Maintenance {
                                $claimed = $queue->getAcquiredCount();
                                $abandoned = $queue->getAbandonedCount();
                                $active = max( 0, $claimed - $abandoned );
-                               if ( ( $pending + $claimed + $delayed ) > 0 ) {
+                               if ( ( $pending + $claimed + $delayed + $abandoned ) > 0 ) {
                                        $this->output(
                                                "{$type}: $pending queued; " .
                                                "$claimed claimed ($active active, $abandoned abandoned); " .