From d8c63d0ae57073490622d59751e3dd84ffd7af34 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 Oct 2017 10:10:13 -0700 Subject: [PATCH] Define MEDIAWIKI_JOB_RUNNER in runJobs.php This is the same value used by the WMF /rpc entrypoint. Change-Id: I146a36c76ff2136e5fa9b768673987ebd611403c --- maintenance/runJobs.php | 3 +++ 1 file changed, 3 insertions(+) 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. * -- 2.20.1