You are here

public function JobTypeBase::getMaxRetries in Advanced Queue 8

Gets the maximum number of retries.

When job processing fails, the queue runner will retry the job until the maximum number of retries is reached. Defaults to 0, indicating that retries are disabled.

Return value

int The job type label.

Overrides JobTypeInterface::getMaxRetries

File

src/Plugin/AdvancedQueue/JobType/JobTypeBase.php, line 22

Class

JobTypeBase
Provides the base class for job types.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\JobType

Code

public function getMaxRetries() {
  return $this->pluginDefinition['max_retries'];
}