jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
BryanDavis: Looks good to me, approved
Parent5446: Looks good to me, but someone else must approve
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ia6c0db44855d7b04430def8f6935fca64dd5b42c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits