Added max lag comment to JobRunner
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 21 Apr 2015 21:02:45 +0000 (14:02 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 22 Apr 2015 14:45:53 +0000 (07:45 -0700)
Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec

includes/jobqueue/JobRunner.php

index 85f9c2c..9425423 100644 (file)
@@ -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 ) {