MediaWiki REL1_35
|
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. | |
setMetadata ( $field, $value) | |
tearDown ( $status) | |
Do any final cleanup after run(), deferred updates, and all DB commits happen. | |
toString () | |
workItemCount () | |
Public Member Functions inherited from IJobSpecification | |
getDeduplicationInfo () | |
Subclasses may need to override this to make duplication detection work. | |
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.
Stable to implement
Definition at line 37 of file RunnableJob.php.
RunnableJob::allowRetries | ( | ) |
Implemented in Job, AssembleUploadChunksJob, PublishStashedFileJob, and ThumbnailRenderJob.
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 ActivityUpdateJob, AssembleUploadChunksJob, CategoryMembershipChangeJob, CdnPurgeJob, ClearUserWatchlistJob, ClearWatchlistNotificationsJob, DeleteLinksJob, DeletePageJob, DoubleRedirectJob, DuplicateJob, EmaillingJob, EnotifNotifyJob, EnqueueJob, HTMLCacheUpdateJob, NullJob, PublishStashedFileJob, RecentChangesUpdateJob, RefreshLinksJob, ThumbnailRenderJob, UserGroupExpiryJob, UserOptionsUpdateJob, and WatchlistExpiryJob.
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 Job, HTMLCacheUpdateJob, and RefreshLinksJob.