X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueueFederated.php;h=beab4c6baecc473999b5161846d39b10c6667ee1;hb=367bc8f7d19e66dfe2d7a326ccf1fcd3629640b4;hp=30ab7e739b033c18e01b416bade1bcff79656268;hpb=b6d03f5a1548e88f2e3932570beca8a3393ddc4f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index 30ab7e739b..beab4c6bae 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -88,8 +88,6 @@ class JobQueueFederated extends JobQueue { ) { unset( $baseConfig[$o] ); // partition queue doesn't care about this } - // The class handles all aggregator calls already - unset( $baseConfig['aggregator'] ); // Get the partition queue objects foreach ( $partitionMap as $partition => $w ) { if ( !isset( $params['configByPartition'][$partition] ) ) { @@ -199,7 +197,7 @@ class JobQueueFederated extends JobQueue { * @param HashRing &$partitionRing * @param int $flags * @throws JobQueueError - * @return array List of Job object that could not be inserted + * @return IJobSpecification[] List of Job object that could not be inserted */ protected function tryJobInsertions( array $jobs, HashRing &$partitionRing, $flags ) { $jobsLeft = []; @@ -299,7 +297,7 @@ class JobQueueFederated extends JobQueue { return false; } - protected function doAck( Job $job ) { + protected function doAck( RunnableJob $job ) { $partition = $job->getMetadata( 'QueuePartition' ); if ( $partition === null ) { throw new MWException( "The given job has no defined partition name." ); @@ -308,7 +306,7 @@ class JobQueueFederated extends JobQueue { $this->partitionQueues[$partition]->ack( $job ); } - protected function doIsRootJobOldDuplicate( Job $job ) { + protected function doIsRootJobOldDuplicate( IJobSpecification $job ) { $signature = $job->getRootJobParams()['rootJobSignature']; $partition = $this->partitionRing->getLiveLocation( $signature ); try {