* For example, one can set $wgJobTypeConf['refreshLinks'] to point to a
* JobQueueFederated instance, which itself would consist of three JobQueueRedis
* instances, each using their own redis server. This would allow for the jobs
- * to be split (evenly or based on weights) accross multiple servers if a single
+ * to be split (evenly or based on weights) across multiple servers if a single
* server becomes impractical or expensive. Different JobQueue classes can be mixed.
*
* The basic queue configuration (e.g. "order", "claimTTL") of a federated queue
// Try to insert the jobs and update $partitionsTry on any failures.
// Retry to insert any remaning jobs again, ignoring the bad partitions.
$jobsLeft = $jobs;
- // @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
+ // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $i = $this->maxPartitionsTry; $i > 0 && count( $jobsLeft ); --$i ) {
- // @codingStandardsIgnoreEnd
try {
$partitionRing->getLiveRing();
} catch ( UnexpectedValueException $e ) {
/**
* @param array $jobs
- * @param HashRing $partitionRing
+ * @param HashRing &$partitionRing
* @param int $flags
* @throws JobQueueError
* @return array List of Job object that could not be inserted