|
MediaWiki master
|
Job to update link tables for rerendered wiki pages. More...
Inherits MediaWiki\JobQueue\Job.

Public Member Functions | ||||
| __construct (PageIdentity $page, array $params) | ||||
| getDeduplicationInfo () | ||||
Subclasses may need to override this to make duplication detection work.The resulting map conveys everything that makes the job unique. This is only checked if ignoreDuplicates() returns true, meaning that duplicate jobs are supposed to be ignored.
| ||||
| run () | ||||
Run the job.If this method returns false or completes exceptionally, the job runner will retry executing this job unless the number of retries has exceeded its configured retry limit. Retries are allowed by default, unless allowRetries() is overridden to disable retries.See the architecture doc for more information.
| ||||
| workItemCount () | ||||
| ||||
| Public Member Functions inherited from MediaWiki\JobQueue\Job | ||||
| __construct ( $command, $params=null) | ||||
| allowRetries () | ||||
Whether to retry execution of this job if run() returned false or threw an exception.
| ||||
| getLastError () | ||||
| ||||
| getMetadata ( $field=null) | ||||
| getParams () | ||||
| ||||
| getQueuedTimestamp () | ||||
| getReadyTimestamp () | ||||
| ||||
| getReleaseTimestamp () | ||||
| getRequestId () | ||||
| ||||
| getRootJobParams () | ||||
| getTitle () | ||||
| getType () | ||||
| ||||
| hasExecutionFlag ( $flag) | ||||
| ||||
| hasRootJobParams () | ||||
| ignoreDuplicates () | ||||
| Whether the queue should reject insertion of this job if a duplicate exists. | ||||
| isRootJob () | ||||
| setMetadata ( $field, $value) | ||||
| teardown ( $status) | ||||
| toString () | ||||
| ||||
| Public Member Functions inherited from MediaWiki\JobQueue\RunnableJob | ||||
| tearDown ( $status) | ||||
| Do any final cleanup after run(), deferred updates, and all DB commits happen. | ||||
Static Public Member Functions | |
| static | newDynamic (PageIdentity $page, array $params) |
| static | newPrioritized (PageIdentity $page, array $params) |
| Static Public Member Functions inherited from MediaWiki\JobQueue\Job | |
| static | factory ( $command, $params=[]) |
| Create the appropriate object to handle a specific job. | |
| static | newRootJobParams ( $key) |
| Get "root job" parameters for a task. | |
Protected Member Functions | |
| runForTitle (PageIdentity $pageIdentity) | |
| Protected Member Functions inherited from MediaWiki\JobQueue\Job | |
| addTeardownCallback ( $callback) | |
| setLastError ( $error) | |
Additional Inherited Members | |
| Public Attributes inherited from MediaWiki\JobQueue\Job | |
| string | $command |
| array | $metadata = [] |
| Additional queue metadata. | |
| array | $params |
| Array of job parameters. | |
| Protected Attributes inherited from MediaWiki\JobQueue\Job | |
| string | $error |
| Text for error that occurred last. | |
| int | $executionFlags = 0 |
| Bitfield of JOB_* class constants. | |
| bool | $removeDuplicates = false |
| Expensive jobs may set this to true. | |
| callable[] | $teardownCallbacks = [] |
| Title | $title |
Job to update link tables for rerendered wiki pages.
This job comes in a few variants:
Job parameters for all jobs:
Metrics:
Definition at line 105 of file RefreshLinksJob.php.
| MediaWiki\JobQueue\Jobs\RefreshLinksJob::__construct | ( | PageIdentity | $page, |
| array | $params ) |
Definition at line 111 of file RefreshLinksJob.php.
References MediaWiki\JobQueue\Job\$params, and MediaWiki\Page\PageIdentity\canExist().
| MediaWiki\JobQueue\Jobs\RefreshLinksJob::getDeduplicationInfo | ( | ) |
Subclasses may need to override this to make duplication detection work.The resulting map conveys everything that makes the job unique. This is only checked if ignoreDuplicates() returns true, meaning that duplicate jobs are supposed to be ignored.
Reimplemented from MediaWiki\JobQueue\Job.
Definition at line 645 of file RefreshLinksJob.php.
|
static |
| PageIdentity | $page | |
| array | $params |
Definition at line 152 of file RefreshLinksJob.php.
References $job, and MediaWiki\JobQueue\Job\$params.
|
static |
| PageIdentity | $page | |
| array | $params |
Definition at line 140 of file RefreshLinksJob.php.
References $job, and MediaWiki\JobQueue\Job\$params.
Referenced by MediaWiki\Deferred\LinksUpdate\LinksUpdate\queueRecursiveJobs().
| MediaWiki\JobQueue\Jobs\RefreshLinksJob::run | ( | ) |
Run the job.If this method returns false or completes exceptionally, the job runner will retry executing this job unless the number of retries has exceeded its configured retry limit. Retries are allowed by default, unless allowRetries() is overridden to disable retries.See the architecture doc for more information.
Implements MediaWiki\JobQueue\RunnableJob.
Definition at line 160 of file RefreshLinksJob.php.
References MediaWiki\JobQueue\Job\$title, MediaWiki\Title\Title\canExist(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\JobQueue\Job\getRootJobParams(), runForTitle(), MediaWiki\JobQueue\Job\setLastError(), and MediaWiki\MainConfigNames\UpdateRowsPerJob.
|
protected |
| PageIdentity | $pageIdentity |
Definition at line 222 of file RefreshLinksJob.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Actions\InfoAction\invalidateCache(), and MediaWiki\JobQueue\Job\setLastError().
Referenced by run().
| MediaWiki\JobQueue\Jobs\RefreshLinksJob::workItemCount | ( | ) |
Reimplemented from MediaWiki\JobQueue\Job.
Definition at line 662 of file RefreshLinksJob.php.