Manual:CopyJobQueue.php/ja

MediaWiki バージョン:
1.22
Category:MediaWiki code/ja#CopyJobQueue.php

詳細

copyJobQueue.php ファイルは、あるジョブ キュー システムから別のジョブ キュー システムへすべてのジョブをコピーするメンテナンス スクリプトです。

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'
    ]
];

オプション/引数

OptionDescriptionRequired?
--srcKey to $wgJobQueueMigrationConfig for source必須
--dstKey to $wgJobQueueMigrationConfig for destination必須
--typeTypes of jobs to copy (use "all" for all)必須

使用法

php maintenance/run.php copyJobQueue --src scrKey --dst dstKey --type jobType
Terminal
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目

Category:Maintenance scripts/ja Category:Jobs maintenance scripts/ja
Category:Jobs maintenance scripts/ja Category:Maintenance scripts/ja Category:MediaWiki code/ja