MediaWiki
1.34.0
|
Interface for serializable objects that describe a job queue task. More...
Public Member Functions | |
getDeduplicationInfo () | |
Subclasses may need to override this to make duplication detection work. More... | |
getParams () | |
getReleaseTimestamp () | |
getRootJobParams () | |
getType () | |
hasRootJobParams () | |
ignoreDuplicates () | |
isRootJob () | |
Interface for serializable objects that describe a job queue task.
A job specification can be inserted into a queue via JobQueue::push(). The specification parameters should be JSON serializable (e.g. no PHP classes). Whatever queue the job specification is pushed into is assumed to have job runners that will eventually pop the job specification from the queue, construct a RunnableJob instance from the specification, and then execute that instance via RunnableJob::run().
Definition at line 35 of file IJobSpecification.php.
IJobSpecification::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.
Implemented in RefreshLinksJob, CategoryMembershipChangeJob, Job, HTMLCacheUpdateJob, PublishStashedFileJob, AssembleUploadChunksJob, JobSpecification, and ClearUserWatchlistJob.
IJobSpecification::getParams | ( | ) |
Implemented in Job, and JobSpecification.
Referenced by JobQueueMemory\jobFromSpecInternal().
IJobSpecification::getReleaseTimestamp | ( | ) |
Implemented in Job, and JobSpecification.
IJobSpecification::getRootJobParams | ( | ) |
Implemented in Job, and JobSpecification.
IJobSpecification::getType | ( | ) |
Implemented in Job, and JobSpecification.
Referenced by JobQueueGroup\ack(), JobQueue\ack(), JobQueueGroup\deduplicateRootJob(), JobQueue\deduplicateRootJob(), and JobQueueMemory\jobFromSpecInternal().
IJobSpecification::hasRootJobParams | ( | ) |
Implemented in Job, and JobSpecification.
IJobSpecification::ignoreDuplicates | ( | ) |
Implemented in Job, and JobSpecification.
IJobSpecification::isRootJob | ( | ) |
Implemented in Job, and JobSpecification.