You are here

public function Job::consumeRetry in Apigee Edge 8

Consumes a retry.

Return value

bool Whether the job can be rescheduled.

File

src/Job/Job.php, line 243

Class

Job
Defines the Job class.

Namespace

Drupal\apigee_edge\Job

Code

public function consumeRetry() : bool {
  if ($this->retry > 0) {
    $this->retry--;
    return TRUE;
  }
  return FALSE;
}