}
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' ) ) {
/**
* 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;