mediawiki.util: Add mw.log.deprecate to #jsMessage
[lhc/web/wiklou.git] / maintenance / nextJobDB.php
index 219b5d8..21d9104 100644 (file)
@@ -28,7 +28,7 @@ require_once __DIR__ . '/Maintenance.php';
  *
  * @ingroup Maintenance
  */
-class nextJobDB extends Maintenance {
+class NextJobDB extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Pick a database that has pending jobs";
@@ -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;
@@ -115,5 +111,5 @@ class nextJobDB extends Maintenance {
        }
 }
 
-$maintClass = "nextJobDb";
+$maintClass = "NextJobDb";
 require_once RUN_MAINTENANCE_IF_MAIN;