From d1723b7820a012fea3897740be27aa7b99474724 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Apr 2014 16:09:35 -0700 Subject: [PATCH] Disable job throttling for DuplicateJob jobs Change-Id: I461ea9710660d061ae2da1f99f39247877332ca2 --- maintenance/runJobs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.20.1