MediaWiki master
MediaWiki\JobQueue\Jobs Namespace Reference

Classes

class  AssembleUploadChunksJob
 Assemble the segments of a chunked upload. More...
 
class  CategoryMembershipChangeJob
 Job to add recent change entries mentioning category membership changes. More...
 
class  CdnPurgeJob
 Job to purge a set of URLs from CDN. More...
 
class  DeleteLinksJob
 Job to prune link tables for pages that were deleted. More...
 
class  DeletePageJob
 
class  DoubleRedirectJob
 Fix any double redirects after moving a page. More...
 
class  DuplicateJob
 No-op job that does nothing. More...
 
class  HTMLCacheUpdateJob
 Job to purge the HTML/file cache for all pages that link to or use another page or file. More...
 
class  NullJob
 No-op job that does nothing. More...
 
class  ParsoidCachePrewarmJob
 
class  PublishStashedFileJob
 Upload a file from the upload stash into the local file repo. More...
 
class  RefreshLinksJob
 Job to update link tables for rerendered wiki pages. More...
 
class  RevertedTagUpdateJob
 Job for deferring the execution of RevertedTagUpdate. More...
 
class  ThumbnailRenderJob
 Job for asynchronous rendering of thumbnails, e.g. More...
 
class  UploadFromUrlJob
 Upload a file by URL, via the jobqueue. More...
 

Functions

 addTeardownCallback ( $callback)
 This is actually implemented in the Job class.
 
 allowRetries ()
 Do not allow retries on jobs by default.
 
 fetchFile ()
 Ensure we have the file available.
 
 getCacheKey ()
 Get the cache key used to store status.
 
 getUpload ()
 Getter for the upload.
 
 initialiseUploadJob ( $cacheKey)
 Set up the job.
 
 logJobParams ( $status)
 Get the job parameters for logging.
 
 run ()
 Run the job.
 
 setLastError ( $error)
 This is actually implemented in the Job class.
 

Variables

array $params
 The job parameters.
 
trait UploadJobTrait
 Common functionality for async uploads.
 

Function Documentation

◆ addTeardownCallback()

MediaWiki\JobQueue\Jobs\addTeardownCallback ( $callback)
abstractprotected

This is actually implemented in the Job class.

Parameters
callable$callback
Returns
void

◆ allowRetries()

MediaWiki\JobQueue\Jobs\allowRetries ( )

Do not allow retries on jobs by default.

Definition at line 67 of file UploadJobTrait.php.

◆ fetchFile()

MediaWiki\JobQueue\Jobs\fetchFile ( )
protected

Ensure we have the file available.

A noop here.

Definition at line 187 of file UploadJobTrait.php.

References MediaWiki\JobQueue\Jobs\setLastError().

◆ getCacheKey()

MediaWiki\JobQueue\Jobs\getCacheKey ( )

Get the cache key used to store status.

Returns
string

Definition at line 134 of file UploadJobTrait.php.

◆ getUpload()

MediaWiki\JobQueue\Jobs\getUpload ( )
abstractprotected

Getter for the upload.

Needs to be implemented by the job class

Returns
UploadBase

◆ initialiseUploadJob()

MediaWiki\JobQueue\Jobs\initialiseUploadJob ( $cacheKey)
protected

Set up the job.

Parameters
string$cacheKey
Returns
void

Definition at line 59 of file UploadJobTrait.php.

Referenced by MediaWiki\JobQueue\Jobs\PublishStashedFileJob\__construct().

◆ logJobParams()

MediaWiki\JobQueue\Jobs\logJobParams ( $status)
abstractprotected

Get the job parameters for logging.

Needs to be implemented by the job class.

Parameters
Status[]$status
Returns
array

◆ run()

MediaWiki\JobQueue\Jobs\run ( )

Run the job.

Definition at line 74 of file UploadJobTrait.php.

◆ setLastError()

MediaWiki\JobQueue\Jobs\setLastError ( $error)
abstractprotected

This is actually implemented in the Job class.

Parameters
mixed$error
Returns
void

Referenced by MediaWiki\JobQueue\Jobs\fetchFile().

Variable Documentation

◆ $params

array MediaWiki::JobQueue::Jobs\$params

The job parameters.

Definition at line 51 of file UploadJobTrait.php.

Referenced by MediaWiki\JobQueue\Jobs\RevertedTagUpdateJob\__construct().