X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FrunJobs.php;h=af2a318bac5a9e6339e4affc3ca27278e508c5c1;hb=c9be16a35596ff369bb5f700c20ae8dc2f7def48;hp=2e011fecde54b2f356e9fdb1aed7b43f2192a5c8;hpb=320e4c56132681f811c2819e3e22e98715f46ae7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 2e011fecde..af2a318bac 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -25,6 +25,9 @@ require_once __DIR__ . '/Maintenance.php'; use MediaWiki\Logger\LoggerFactory; +// So extensions (and other code) can check whether they're running in job mode +define( 'MEDIAWIKI_JOB_RUNNER', true ); + /** * Maintenance script that runs pending jobs. * @@ -39,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 ); }