MediaWiki REL1_37
RunnableJob.php
Go to the documentation of this file.
1<?php
37interface 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}
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.