From 6525642cf28f0a092786735be1980319f24de65f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 9 Apr 2015 21:35:06 -0700 Subject: [PATCH] Made JobRunner avoid slave lag more aggressively Bug: T95501 Change-Id: Ibba6d2947638a17c86edcdaadf484c7aa45cd1c6 --- includes/jobqueue/JobRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index f808a324cc..1725b74667 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -235,7 +235,7 @@ class JobRunner implements LoggerAwareInterface { // This only waits for so long before exiting and letting // other wikis in the farm (on different masters) get a chance. $timePassed = microtime( true ) - $lastTime; - if ( $timePassed >= 5 || $timePassed < 0 ) { + if ( $timePassed >= 3 || $timePassed < 0 ) { if ( !wfWaitForSlaves( $lastTime, false, '*', 5 ) ) { $response['reached'] = 'slave-lag-limit'; break; -- 2.20.1