43 public function run() {
44 if ( $this->title ===
null ) {
49 $pageId = $this->params[
'pageId'];
53 $scopedLock = LinksUpdate::acquirePageLock( $dbw, $pageId,
'job' );
54 if ( $scopedLock ===
null ) {
55 $this->
setLastError(
'LinksUpdate already running for this page, try again later.' );
60 $wikiPageFactory = $services->getWikiPageFactory();
61 if ( $wikiPageFactory->newFromID( $pageId, IDBAccessObject::READ_LATEST ) ) {
63 $this->
setLastError(
"deleteLinks: Page #$pageId exists" );
67 $dbProvider = $services->getConnectionProvider();
68 $timestamp = $this->params[
'timestamp'] ??
null;
69 $page = $wikiPageFactory->newFromTitle( $this->title );
72 $update->setTransactionTicket( $dbProvider->getEmptyTransactionTicket( __METHOD__ ) );