X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrunJobs.php;h=51c52be61997bffdfe531e6f3c39ab07b4ef468d;hb=801a8bdaa38cea5ff4db0440c82e9eb83e083772;hp=929b5c976c651cd6a2e605218aad8de53b9ce32a;hpb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 929b5c976c..51c52be619 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -42,7 +42,7 @@ class RunJobs extends Maintenance { $this->addOption( 'type', 'Type of job to run', false, true ); $this->addOption( 'procs', 'Number of processes to use', false, true ); $this->addOption( 'nothrottle', 'Ignore job throttling configuration', false, false ); - $this->addOption( 'result', 'Set to JSON to print only a JSON response', false, true ); + $this->addOption( 'result', 'Set to "json" to print only a JSON response', false, true ); $this->addOption( 'wait', 'Wait for new jobs instead of exiting', false, false ); } @@ -59,7 +59,7 @@ class RunJobs extends Maintenance { if ( $this->hasOption( 'procs' ) ) { $procs = intval( $this->getOption( 'procs' ) ); if ( $procs < 1 || $procs > 1000 ) { - $this->error( "Invalid argument to --procs", true ); + $this->fatalError( "Invalid argument to --procs" ); } elseif ( $procs != 1 ) { $fc = new ForkController( $procs ); if ( $fc->start() != 'child' ) { @@ -118,5 +118,5 @@ class RunJobs extends Maintenance { } } -$maintClass = "RunJobs"; +$maintClass = RunJobs::class; require_once RUN_MAINTENANCE_IF_MAIN;