Define MEDIAWIKI_JOB_RUNNER in runJobs.php
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 9 Oct 2017 17:10:13 +0000 (10:10 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 9 Oct 2017 17:10:13 +0000 (10:10 -0700)
This is the same value used by the WMF /rpc entrypoint.

Change-Id: I146a36c76ff2136e5fa9b768673987ebd611403c

maintenance/runJobs.php

index 2e011fe..929b5c9 100644 (file)
@@ -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.
  *