You are here

public function BackendInterface::retryJob in Advanced Queue 8

Retries the given job.

Parameters

\Drupal\advancedqueue\Job $job: The job.

int $delay: The time, in seconds, after which the retried job will become available to consumers. Defaults to 0, indicating no delay.

Throws

\InvalidArgumentException Thrown if the given job is in an invalid state (not Job::STATE_FAILED).

1 method overrides BackendInterface::retryJob()
Database::retryJob in src/Plugin/AdvancedQueue/Backend/Database.php
Retries the given job.

File

src/Plugin/AdvancedQueue/Backend/BackendInterface.php, line 107

Class

BackendInterface
Provides the interface for queue backends.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\Backend

Code

public function retryJob(Job $job, $delay = 0);