MediaWiki
1.34.0
|
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack() More...
Public Member Functions | |
allowRetries () | |
getLastError () | |
getMetadata ( $field=null) | |
getReadyTimestamp () | |
getRequestId () | |
hasExecutionFlag ( $flag) | |
run () | |
Run the job. More... | |
setMetadata ( $field, $value) | |
tearDown ( $status) | |
Do any final cleanup after run(), deferred updates, and all DB commits happen. More... | |
toString () | |
workItemCount () | |
Public Member Functions inherited from IJobSpecification | |
getDeduplicationInfo () | |
Subclasses may need to override this to make duplication detection work. More... | |
getParams () | |
getReleaseTimestamp () | |
getRootJobParams () | |
getType () | |
hasRootJobParams () | |
ignoreDuplicates () | |
isRootJob () | |
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack()
Instances are not only enqueueable via JobQueue::push(), but they can also be executed by by calling their run() method. When constructing a job to be enqueued via JobQueue::push(), it will not be possible to construct a RunnableJob instance if the class for that job is not loaded by the application for the local DB domain. In that case, the general-purpose JobSpecification class can be used instead.
Definition at line 35 of file RunnableJob.php.
RunnableJob::allowRetries | ( | ) |
Implemented in Job, PublishStashedFileJob, ThumbnailRenderJob, and AssembleUploadChunksJob.
RunnableJob::getLastError | ( | ) |
Implemented in Job.
RunnableJob::getMetadata | ( | $field = null | ) |
string | null | $field | Metadata field or null to get all the metadata |
Implemented in Job.
RunnableJob::getReadyTimestamp | ( | ) |
RunnableJob::getRequestId | ( | ) |
Implemented in Job.
RunnableJob::hasExecutionFlag | ( | $flag | ) |
RunnableJob::run | ( | ) |
Run the job.
Implemented in DoubleRedirectJob, EnqueueJob, RefreshLinksJob, CategoryMembershipChangeJob, HTMLCacheUpdateJob, NullJob, RecentChangesUpdateJob, DuplicateJob, ActivityUpdateJob, ClearWatchlistNotificationsJob, RenameUserJob, ReplaceTextJob, DeleteLinksJob, UserOptionsUpdateJob, PublishStashedFileJob, AssembleUploadChunksJob, CdnPurgeJob, ClearUserWatchlistJob, ThumbnailRenderJob, EmaillingJob, EnotifNotifyJob, UserGroupExpiryJob, CreatePdfThumbnailsJob, PageImages\Job\InitImageDataJob, and DeletePageJob.
RunnableJob::setMetadata | ( | $field, | |
$value | |||
) |
string | $field | Key name to set the value for |
mixed | $value | The value to set the field for |
Implemented in Job.
RunnableJob::tearDown | ( | $status | ) |
Do any final cleanup after run(), deferred updates, and all DB commits happen.
bool | $status | Whether the job, its deferred updates, and DB commit all succeeded |
RunnableJob::toString | ( | ) |
Implemented in Job.
RunnableJob::workItemCount | ( | ) |
Implemented in RefreshLinksJob, Job, and HTMLCacheUpdateJob.