[JobQueue] Use target wiki configuration for some key functions.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 4 Feb 2013 00:28:52 +0000 (16:28 -0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 21 Feb 2013 05:34:42 +0000 (05:34 +0000)
commit04e0d75f86b189a389e055b4764a951ba836ca82
treef0738c61fc8db624d863e9bfcdcb3f066b1acd9b
parent2be946eed254fe81932ff543dbb07b5b366f9ce6
[JobQueue] Use target wiki configuration for some key functions.

* getQueueTypes() now gets the config of the target wiki.
  Previously, for WMF, if an extension using jobs was not
  on aawiki, those job queues would not be seen by nextJobDB.
* Also fixed nextJobDB.php so that it no longer only considers
  jobs types known to aawiki for picking a DB for default jobs.
* Note that $wgJobTypesExcludedFromDefaultQueue should be global.
* This adds a SiteConfiguration::getConfig() function, which calls
  a new getConfiguration.php script.

Change-Id: I7e6904ead17efa407291f423a2b18e3c866d55fd
includes/SiteConfiguration.php
includes/job/JobQueueGroup.php
maintenance/getConfiguration.php [new file with mode: 0644]
maintenance/nextJobDB.php