dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8052829
)
Define MEDIAWIKI_JOB_RUNNER in runJobs.php
author
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 9 Oct 2017 17:10:13 +0000
(10:10 -0700)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/maintenance/runJobs.php
b/maintenance/runJobs.php
index
2e011fe
..
929b5c9
100644
(file)
--- 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.
*