MediaWiki master
RunnableJob.php
Go to the documentation of this file.
1<?php
34interface RunnableJob extends IJobSpecification {
36 public const JOB_NO_EXPLICIT_TRX_ROUND = 1;
37
42 public function run();
43
48 public function getMetadata( $field = null );
49
55 public function setMetadata( $field, $value );
56
62 public function hasExecutionFlag( $flag );
63
70 public function getRequestId();
71
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.