MediaWiki master
|
Job to update link tables for rerendered wiki pages. More...
Inherits Job.
Public Member Functions | ||||
__construct (PageIdentity $page, array $params) | ||||
getDeduplicationInfo () | ||||
Subclasses may need to override this to make duplication detection work. | ||||
run () | ||||
Run the job. | ||||
workItemCount () | ||||
Public Member Functions inherited from Job | ||||
__construct ( $command, $params=null) | ||||
allowRetries () | ||||
| ||||
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 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 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 Job | |
addTeardownCallback ( $callback) | |
setLastError ( $error) | |
Additional Inherited Members | |
Public Attributes inherited from Job | |
string | $command |
array | $metadata = [] |
Additional queue metadata. | |
array | $params |
Array of job parameters. | |
Protected Attributes inherited from 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:
refreshlinks_superseded_updates_total
: The number of times the job was cancelled because the target page had already been refreshed by a different edit or job. The job is considered to have succeeded in this case.refreshlinks_warnings_total
: The number of times the job failed due to a recoverable issue. Possible reason
label values include:lag_wait_failed
: The job timed out while waiting for replication.refreshlinks_failures_total
: The number of times the job failed. The reason
label may be:page_not_found
: The target page did not exist.rev_not_current
: The target revision was no longer the latest revision for the target page.rev_not_found
: The target revision was not found.lock_failure
: The job failed to acquire an exclusive lock to refresh the target page.refreshlinks_parsercache_operations_total
: The number of times the job attempted to fetch parser output from the parser cache. Possible status
label values include:cache_hit
: The parser output was found in the cache.cache_miss
: The parser output was not found in the cache.Definition at line 105 of file RefreshLinksJob.php.
RefreshLinksJob::__construct | ( | PageIdentity | $page, |
array | $params ) |
Definition at line 111 of file RefreshLinksJob.php.
References $params, and MediaWiki\Page\PageIdentity\canExist().
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 Job.
Definition at line 546 of file RefreshLinksJob.php.
|
static |
PageIdentity | $page | |
array | $params |
Definition at line 152 of file RefreshLinksJob.php.
|
static |
PageIdentity | $page | |
array | $params |
Definition at line 140 of file RefreshLinksJob.php.
Referenced by MediaWiki\Deferred\LinksUpdate\LinksUpdate\queueRecursiveJobs().
RefreshLinksJob::run | ( | ) |
Run the job.
Implements RunnableJob.
Definition at line 159 of file RefreshLinksJob.php.
References Job\$title, MediaWiki\Title\Title\canExist(), Job\getRootJobParams(), BacklinkJobUtils\partitionBacklinkJob(), runForTitle(), and setLastError().
|
protected |
PageIdentity | $pageIdentity |
Definition at line 222 of file RefreshLinksJob.php.
References setLastError().
Referenced by run().
RefreshLinksJob::workItemCount | ( | ) |
Reimplemented from Job.
Definition at line 562 of file RefreshLinksJob.php.