Change-Id: I4cdd43b0b248700e199947e99d2df32b91e23ef7
}
/**
- * @return bool
+ * @return bool Whether only one of each identical set of jobs should be run
*/
public function ignoreDuplicates() {
return $this->removeDuplicates;
}
+ /**
+ * @return bool Whether this job can be retried on failure by job runners
+ */
+ public function allowRetries() {
+ return true;
+ }
+
/**
* Subclasses may need to override this to make duplication detection work
*
wfWarn( $job->getType() . " job failed to return a boolean." );
$status = true; // sanity
}
- if ( $status ) {
+ if ( $status || !$job->allowRetries() ) {
$group->ack( $job ); // done
}