From ef233823241e35bedfc9b943602d730163fded5f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 21 Apr 2015 14:02:45 -0700 Subject: [PATCH] Added max lag comment to JobRunner Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec --- includes/jobqueue/JobRunner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.20.1