dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b4b49
)
Added max lag comment to JobRunner
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 21 Apr 2015 21:02:45 +0000
(14:02 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 22 Apr 2015 14:45:53 +0000
(07:45 -0700)
Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec
includes/jobqueue/JobRunner.php
patch
|
blob
|
history
diff --git
a/includes/jobqueue/JobRunner.php
b/includes/jobqueue/JobRunner.php
index
85f9c2c
..
9425423
100644
(file)
--- a/
includes/jobqueue/JobRunner.php
+++ b/
includes/jobqueue/JobRunner.php
@@
-122,7
+122,8
@@
class JobRunner implements LoggerAwareInterface {
$trxProfiler->setLogger( LoggerFactory::getInstance( 'DBPerformance' ) );
$trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ );
- // Bail out if there is too much DB lag
+ // Bail out if there is too much DB lag.
+ // This check should not block as we want to try other wiki queues.
$maxAllowedLag = 3;
list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag();
if ( $maxLag >= $maxAllowedLag ) {