/**
* @see JobQueue::doBatchPush()
* @param array $jobs
- * @param array $flags
- * @return bool
+ * @param int $flags
+ * @return void
* @throws JobQueueError
*/
protected function doBatchPush( array $jobs, $flags ) {
}
if ( !count( $items ) ) {
- return true; // nothing to do
+ return; // nothing to do
}
$conn = $this->getConnection();
if ( $failed > 0 ) {
wfDebugLog( 'JobQueueRedis', "Could not insert {$failed} {$this->type} job(s)." );
- return false;
+ throw new RedisException( "Could not insert {$failed} {$this->type} job(s)." );
}
JobQueue::incrStats( 'job-insert', $this->type, count( $items ), $this->wiki );
JobQueue::incrStats( 'job-insert-duplicate', $this->type,
} catch ( RedisException $e ) {
$this->throwRedisException( $conn, $e );
}
-
- return true;
}
/**