You are here

public function JobTypeInterface::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.

1 method overrides JobTypeInterface::getMaxRetries()
JobTypeBase::getMaxRetries in src/Plugin/AdvancedQueue/JobType/JobTypeBase.php
Gets the maximum number of retries.

File

src/Plugin/AdvancedQueue/JobType/JobTypeInterface.php, line 34

Class

JobTypeInterface
Defines the interface for job types.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\JobType

Code

public function getMaxRetries();