Go to the documentation of this file.
65 }
catch ( RedisException
$e ) {
81 }
catch ( RedisException
$e ) {
94 $conn->multi( Redis::PIPELINE );
97 list( $exists, $map ) = $conn->exec();
100 $pendingDBs =
array();
101 foreach ( $map
as $key =>
$time ) {
103 $pendingDBs[
$type][] = $wiki;
108 $conn->multi( Redis::MULTI );
109 $conn->setex(
"{$rand}:lock", 3600, 1 );
111 if ( $conn->exec() !==
array(
true,
true ) ) {
112 $conn->delete(
"{$rand}:lock" );
122 foreach ( $pendingDBs
as $type => $wikis ) {
123 foreach ( $wikis
as $wiki ) {
131 }
catch ( RedisException
$e ) {
145 }
catch ( RedisException
$e ) {
163 $conn = $this->redisPool->getConnection( $server );
178 $this->redisPool->handleError( $conn,
$e );
185 return "jobqueue:aggregator:h-ready-queues:v1";
194 return rawurlencode(
$type ) .
'/' . rawurlencode( $wiki );
204 return array( rawurldecode(
$type ), rawurldecode( $wiki ) );
see documentation in includes Linker php for Linker::makeImageLink & $time
static singleton(array $options)
doNotifyQueueEmpty( $wiki, $type)
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
doGetAllReadyWikiQueues()
storage can be distributed across multiple servers
Class to handle tracking information about all queues.
encQueueName( $type, $wiki)
array $servers
List of Redis server addresses *.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
Class to handle tracking information about all queues using PhpRedis.
Helper class to manage Redis connections.
RedisConnectionPool $redisPool
__construct(array $params)
@params include:
Allows to change the fields on the form that will be generated $name
getConnection()
Get a connection to the server that handles all sub-queues for this queue.
handleException(RedisConnRef $conn, $e)
findPendingWikiQueues()
Get all databases that have a pending job.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Helper class to handle automatically marking connectons as reusable (via RAII pattern)
doNotifyQueueNonEmpty( $wiki, $type)
wfRandomString( $length=32)
Get a random string containing a number of pseudo-random hex characters.