*/
public function hasRootJobParams();
+ /**
+ * @see JobQueue::deduplicateRootJob()
+ * @return bool Whether this is job is a root job
+ */
+ public function isRootJob();
+
/**
* @return Title Descriptive title (this can simply be informative)
*/
&& isset( $this->params['rootJobTimestamp'] );
}
+ public function isRootJob() {
+ return $this->hasRootJobParams() && !empty( $this->params['rootJobIsSelf'] );
+ }
+
/**
* @return array Field/value map that can immediately be serialized
* @since 1.25