MediaWiki  1.34.0
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 }
RunnableJob\getMetadata
getMetadata( $field=null)
RunnableJob
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack()
Definition: RunnableJob.php:35
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()
$status
return $status
Definition: SyntaxHighlight.php:347
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