getDBLoadBalancerFactory(); foreach ( $this->params['page_ids'] as $id ) { try { RefreshLinks::fixLinksFromArticle( $id ); $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 ); } } } }