MediaWiki  master
RunnableJob.php
Go to the documentation of this file.
1 <?php
35 interface RunnableJob extends IJobSpecification {
37  const JOB_NO_EXPLICIT_TRX_ROUND = 1;
38 
43  public function run();
44 
49  public function getMetadata( $field = null );
50 
56  public function setMetadata( $field, $value );
57 
63  public function hasExecutionFlag( $flag );
64 
71  public function getRequestId();
72 
77  public function allowRetries();
78 
84  public function workItemCount();
85 
90  public function getReadyTimestamp();
91 
97  public function tearDown( $status );
98 
102  public function getLastError();
103 
107  public function toString();
108 }
setMetadata( $field, $value)
run()
Run the job.
getMetadata( $field=null)
hasExecutionFlag( $flag)
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack() ...
Definition: RunnableJob.php:35
Interface for serializable objects that describe a job queue task.
tearDown( $status)
Do any final cleanup after run(), deferred updates, and all DB commits happen.