MediaWiki
REL1_22
|
Copy all jobs from one job queue system to another. More...
Public Member Functions | |
__construct () | |
execute () | |
Protected Member Functions | |
copyJobs (JobQueue $src, JobQueue $dst, $jobs) |
Copy all jobs from one job queue system to another.
This uses an ad-hoc $wgJobQueueMigrationConfig setting, which is a map of queue system names to JobQueue::factory() parameters. The parameters should not have wiki or type settings and thus partial.
Definition at line 34 of file copyJobQueue.php.
Reimplemented from Maintenance.
Definition at line 35 of file copyJobQueue.php.
References Maintenance\addOption(), and Maintenance\setBatchSize().
CopyJobQueue::copyJobs | ( | JobQueue $ | src, |
JobQueue $ | dst, | ||
$ | jobs | ||
) | [protected] |
Definition at line 73 of file copyJobQueue.php.
References $batch, $job, $total, array(), as, JobQueue\push(), and JobQueue\waitForBackups().
Referenced by execute().
Reimplemented from Maintenance.
Definition at line 44 of file copyJobQueue.php.
References $total, array(), as, copyJobs(), Maintenance\error(), JobQueue\factory(), Maintenance\getOption(), global, list, Maintenance\output(), JobQueueGroup\singleton(), and wfWikiID().