lbFactory = $lbFactory; } /** * @inheritDoc */ public function run() { foreach ( $this->params['page_ids'] as $id ) { try { RefreshLinks::fixLinksFromArticle( $id ); $this->lbFactory->waitForReplication(); } catch ( \Exception $e ) { // There are some broken pages out there that just don't parse. // Log it and keep on trucking. MWExceptionHandler::logException( $e ); } } return true; } }