*
* @ingroup Maintenance
*/
-class nextJobDB extends Maintenance {
+class NextJobDB extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Pick a database that has pending jobs";
}
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;
}
}
-$maintClass = "nextJobDb";
+$maintClass = "NextJobDb";
require_once RUN_MAINTENANCE_IF_MAIN;