Manual:CopyJobQueue.php/pt-br

Versão MediaWiki:
1.22
Category:MediaWiki code/pt-br#CopyJobQueue.php

Detalhes

O arquivo copyJobQueue.php é um script de manutenção para copiar todas as tarefas de um sistema de fila de tarefas para outro.

This script requires setting $wgJobQueueMigrationConfig before running. This script processes 500 items in a batch.

The $wgJobQueueMigrationConfig configuration variable consists of keys with array values. These array values are passed to JobQueue::factory(). The parameters in the array should not have wiki or type settings as it will be injected by script itself.

$wgJobQueueMigrationConfig = [
    'db' => [
        'class' => 'JobQueueDB',
        'idGenerator' => 'uniqueId1'
    ],
    'redis' => [
        'class' => 'JobQueueRedis',
        'redisServer' => 'localhost',
        'redisConfig' => [ 'connectTimeout' => 1 ],
        'idGenerator' => 'uniqueId2'
    ]
];

Options/Arguments

OptionDescriptionRequired?
--srcKey to $wgJobQueueMigrationConfig for sourceRequired
--dstKey to $wgJobQueueMigrationConfig for destinationRequired
--typeTypes of jobs to copy (use "all" for all)Required

Usage

php maintenance/run.php copyJobQueue --src scrKey --dst dstKey --type jobType
Terminal
No MediaWiki versão 1.39.12 e anteriores, você deve invocar os scripts de manutenção usando php maintenance/scriptName.php em vez de php maintenance/run.php scriptName.

See also

Category:Maintenance scripts/pt-br Category:Jobs maintenance scripts/pt-br
Category:Jobs maintenance scripts/pt-br Category:Maintenance scripts/pt-br Category:MediaWiki code/pt-br