46 if ( !isset( self::$instance ) ) {
50 throw new MWException(
"Class '$class' is not a JobQueueAggregator class." );
52 self::$instance = $obj;
64 self::$instance =
null;
152 foreach ( JobQueueGroup::singleton( $db )->getQueuesWithJobs() as
$type ) {
153 $pendingDBs[
$type][] = $db;
$wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$wgJobQueueAggregator
Which aggregator to use for tracking which queues have jobs.
doNotifyQueueEmpty( $wiki, $type)
doGetAllReadyWikiQueues()
doNotifyQueueNonEmpty( $wiki, $type)
Class to handle tracking information about all queues.
__construct(array $params)
getAllReadyWikiQueues()
Get the list of all of the queues with jobs.
findPendingWikiQueues()
Get all databases that have a pending job.
notifyQueueNonEmpty( $wiki, $type)
Mark a queue as being non-empty.
static destroySingleton()
Destroy the singleton instance.
doNotifyQueueEmpty( $wiki, $type)
doNotifyQueueNonEmpty( $wiki, $type)
static JobQueueAggregator $instance
doGetAllReadyWikiQueues()
purge()
Purge all of the aggregator information.
notifyQueueEmpty( $wiki, $type)
Mark a queue as being empty.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))