Jump to content

Podręcznik:$wgJobTypeConf

From mediawiki.org
This page is a translated version of the page Manual:$wgJobTypeConf and the translation is 30% complete.
Rozszerzenia: $wgJobTypeConf
Configuration for job storage.
Wprowadzono w wersji:1.21.0 (Gerrit change 13194; git #b567f360)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:nie określono
Domyślna wartość:Patrz poniżej

Szczegóły

Configuration for job storage.

Default

Wersja MediaWiki:
1.31
/**
 * Map of job types to configuration arrays.
 * This determines which queue class and storage system is used for each job type.
 * Job types that do not have explicit configuration will use the 'default' config.
 * These settings should be global to all wikis.
 */
$wgJobTypeConf = [
	'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
];
Wersje MediaWiki:
1.26 – 1.30
$wgJobTypeConf = [
	'default' => [ 'class' => 'JobQueueDB', 'order' => 'random', 'claimTTL' => 3600 ],
];
Wersje MediaWiki:
1.21 – 1.25
$wgJobTypeConf = array(
	'default' => array( 'class' => 'JobQueueDB', 'order' => 'random' ),
);

Redis

$wgJobTypeConf['default'] = [
    'class'          => 'JobQueueRedis',
    'redisServer'    => '127.0.0.1:6379',
    'redisConfig'    => [],
    'claimTTL'       => 3600,
    'daemonized'     => true
 ];