X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmanageJobs.php;h=c1b038c1619af56dcaff433f4c52cc0c075d05a2;hb=69661f2fe8561bf965d66aa605d17ff46b72978c;hp=bbedf0c646465b86d48a9ba412f9889da42b9baa;hpb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/manageJobs.php b/maintenance/manageJobs.php index bbedf0c646..c1b038c161 100644 --- a/maintenance/manageJobs.php +++ b/maintenance/manageJobs.php @@ -19,7 +19,6 @@ * * @file * @ingroup Maintenance - * @author Aaron Schulz */ require_once __DIR__ . '/Maintenance.php'; @@ -49,7 +48,7 @@ class ManageJobs extends Maintenance { } elseif ( $action === 'repush-abandoned' ) { $this->repushAbandoned( $queue ); } else { - $this->error( "Invalid action '$action'.", 1 ); + $this->fatalError( "Invalid action '$action'." ); } } @@ -83,7 +82,7 @@ class ManageJobs extends Maintenance { $queue->push( $job ); ++$count; - if ( ( $count % $this->mBatchSize ) == 0 ) { + if ( ( $count % $this->getBatchSize() ) == 0 ) { $queue->waitForBackups(); } }