From: Aaron Schulz Date: Mon, 9 Oct 2017 17:10:13 +0000 (-0700) Subject: Define MEDIAWIKI_JOB_RUNNER in runJobs.php X-Git-Tag: 1.31.0-rc.0~1829^2 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=d8c63d0ae57073490622d59751e3dd84ffd7af34;p=lhc%2Fweb%2Fwiklou.git Define MEDIAWIKI_JOB_RUNNER in runJobs.php This is the same value used by the WMF /rpc entrypoint. Change-Id: I146a36c76ff2136e5fa9b768673987ebd611403c --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 2e011fecde..929b5c976c 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. *