jenkins-bot has submitted this change and it was merged.

Change subject: Made JobRunner avoid slave lag more aggressively
......................................................................


Made JobRunner avoid slave lag more aggressively

Bug: T95501
Change-Id: Ibba6d2947638a17c86edcdaadf484c7aa45cd1c6
(cherry picked from commit 6525642cf28f0a092786735be1980319f24de65f)
---
M includes/jobqueue/JobRunner.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Aaron Schulz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php
index b8c5d6c..a9cc438 100644
--- a/includes/jobqueue/JobRunner.php
+++ b/includes/jobqueue/JobRunner.php
@@ -230,7 +230,7 @@
                                // 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;

-- 
To view, visit https://gerrit.wikimedia.org/r/203509
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibba6d2947638a17c86edcdaadf484c7aa45cd1c6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.26wmf1
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to