From: Aaron Schulz Date: Tue, 21 Apr 2015 21:02:45 +0000 (-0700) Subject: Added max lag comment to JobRunner X-Git-Tag: 1.31.0-rc.0~11625^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=ef233823241e35bedfc9b943602d730163fded5f;p=lhc%2Fweb%2Fwiklou.git Added max lag comment to JobRunner Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec --- diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index 85f9c2c656..94254239c1 100644 --- 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 ) {