*
* @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' ) ) {
}
}
-$maintClass = "nextJobDb";
+$maintClass = "NextJobDb";
require_once RUN_MAINTENANCE_IF_MAIN;