X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnextJobDB.php;h=21d91042135c27605d7e00ec68bfd4d979345ad9;hb=f856a480b9dc99e62bdeb33df5abe213ac9e0f4f;hp=06ccccbb0fa5a5d35fc2e1247e9b503df9adc2f9;hpb=837db795d57faeb209d4e3e115d8be3d17228336;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/nextJobDB.php b/maintenance/nextJobDB.php index 06ccccbb0f..21d9104213 100644 --- a/maintenance/nextJobDB.php +++ b/maintenance/nextJobDB.php @@ -78,10 +78,6 @@ class NextJobDB extends Maintenance { } list( $type, $db ) = $candidates[mt_rand( 0, count( $candidates ) - 1 )]; - if ( JobQueueGroup::singleton( $db )->isQueueDeprioritized( $type ) ) { - $pendingDBs[$type] = array_diff( $pendingDBs[$type], array( $db ) ); - $again = true; - } } while ( $again ); if ( $this->hasOption( 'types' ) ) { @@ -93,7 +89,7 @@ class NextJobDB extends Maintenance { /** * Do all ready periodic jobs for all databases every 5 minutes (and .1% of the time) - * @return integer + * @return int */ private function executeReadyPeriodicTasks() { global $wgLocalDatabases, $wgMemc;