Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/64994
Change subject: Actually update $lastTime in runJobs.php ...................................................................... Actually update $lastTime in runJobs.php Change-Id: Ic51b0941aa72f444b1bad919e6a05ff0ba273ce7 --- M maintenance/runJobs.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/94/64994/1 diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index f0264ac..ded97c4 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -84,7 +84,7 @@ } $flags = JobQueueGroup::USE_CACHE | JobQueueGroup::USE_PRIORITY; - $lastTime = time(); + $lastTime = time(); // time since last slave check do { $job = ( $type === false ) ? $group->pop( JobQueueGroup::TYPE_DEFAULT, $flags ) @@ -128,6 +128,7 @@ $timePassed = time() - $lastTime; if ( $timePassed >= 5 || $timePassed < 0 ) { wfWaitForSlaves(); + $lastTime = time(); } // Don't let any queue slaves/backups fall behind if ( $jobsRun > 0 && ( $jobsRun % 100 ) == 0 ) { -- To view, visit https://gerrit.wikimedia.org/r/64994 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic51b0941aa72f444b1bad919e6a05ff0ba273ce7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: wmf/1.22wmf4 Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits