MediaWiki REL1_34
RunnableJob.php
Go to the documentation of this file.
1<?php
35interface 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}
Interface for serializable objects that describe a job queue task.
Job that has a run() method and metadata accessors for JobQueue::pop() and JobQueue::ack()
getMetadata( $field=null)
tearDown( $status)
Do any final cleanup after run(), deferred updates, and all DB commits happen.
setMetadata( $field, $value)
hasExecutionFlag( $flag)
run()
Run the job.