From: Aaron Schulz Date: Mon, 28 Apr 2014 23:09:35 +0000 (-0700) Subject: Disable job throttling for DuplicateJob jobs X-Git-Tag: 1.31.0-rc.0~15982 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=d1723b7820a012fea3897740be27aa7b99474724;p=lhc%2Fweb%2Fwiklou.git Disable job throttling for DuplicateJob jobs Change-Id: I461ea9710660d061ae2da1f99f39247877332ca2 --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index b488fe94b2..f69a3a30b7 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -176,9 +176,12 @@ class RunJobs extends Maintenance { private function getBackoffTimeToWait( Job $job ) { global $wgJobBackoffThrottling; - if ( !isset( $wgJobBackoffThrottling[$job->getType()] ) ) { + if ( !isset( $wgJobBackoffThrottling[$job->getType()] ) || + $job instanceof DuplicateJob // no work was done + ) { return 0; // not throttled } + $itemsPerSecond = $wgJobBackoffThrottling[$job->getType()]; if ( $itemsPerSecond <= 0 ) { return 0; // not throttled