MediaWiki  master
RunnableJob.php
Go to the documentation of this file.
1 <?php
37 interface RunnableJob extends IJobSpecification {
39  public const JOB_NO_EXPLICIT_TRX_ROUND = 1;
40 
45  public function run();
46 
51  public function getMetadata( $field = null );
52 
58  public function setMetadata( $field, $value );
59 
65  public function hasExecutionFlag( $flag );
66 
73  public function getRequestId();
74 
79  public function allowRetries();
80 
86  public function workItemCount();
87 
92  public function getReadyTimestamp();
93 
99  public function tearDown( $status );
100 
104  public function getLastError();
105 
109  public function toString();
110 }
RunnableJob\getMetadata
getMetadata( $field=null)
RunnableJob
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack()
Definition: RunnableJob.php:37
RunnableJob\getLastError
getLastError()
RunnableJob\toString
toString()
RunnableJob\workItemCount
workItemCount()
RunnableJob\tearDown
tearDown( $status)
Do any final cleanup after run(), deferred updates, and all DB commits happen.
RunnableJob\allowRetries
allowRetries()
RunnableJob\getRequestId
getRequestId()
RunnableJob\hasExecutionFlag
hasExecutionFlag( $flag)
RunnableJob\run
run()
Run the job.
RunnableJob\getReadyTimestamp
getReadyTimestamp()
RunnableJob\setMetadata
setMetadata( $field, $value)
IJobSpecification
Interface for serializable objects that describe a job queue task.
Definition: IJobSpecification.php:35