You are here

public function Job::setNumRetries in Advanced Queue 8

Sets the number of times this job was retried.

Parameters

int $num_retries: The number of retries.

Return value

$this

File

src/Job.php, line 322

Class

Job
Represents a job.

Namespace

Drupal\advancedqueue

Code

public function setNumRetries($num_retries) {
  $this->numRetries = $num_retries;
  return $this;
}