X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcopyJobQueue.php;h=42c2dd4d7703819ab8e4192ab26bc47a672dd97a;hb=995449ef039b769a613ddf3731ece1e4c20d358c;hp=c5a78278f7fda245ec62c87923618e2151d4c9f0;hpb=91372c2225304291b7f77c20dedc2ffab000f508;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/copyJobQueue.php b/maintenance/copyJobQueue.php index c5a78278f7..42c2dd4d77 100644 --- a/maintenance/copyJobQueue.php +++ b/maintenance/copyJobQueue.php @@ -34,7 +34,7 @@ require_once __DIR__ . '/Maintenance.php'; class CopyJobQueue extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Copy jobs from one queue system to another."; + $this->addDescription( 'Copy jobs from one queue system to another.' ); $this->addOption( 'src', 'Key to $wgJobQueueMigrationConfig for source', true, true ); $this->addOption( 'dst', 'Key to $wgJobQueueMigrationConfig for destination', true, true ); $this->addOption( 'type', 'Types of jobs to copy (use "all" for all)', true, true ); @@ -89,6 +89,7 @@ class CopyJobQueue extends Maintenance { $totalOK += count( $batch ); $dst->waitForBackups(); } + return array( $total, $totalOK ); } }