You are here

Retry.php in Advanced Queue 8

File

tests/modules/advancedqueue_test/src/Plugin/AdvancedQueue/JobType/Retry.php
View source
<?php

namespace Drupal\advancedqueue_test\Plugin\AdvancedQueue\JobType;

use Drupal\advancedqueue\Job;
use Drupal\advancedqueue\JobResult;
use Drupal\advancedqueue\Plugin\AdvancedQueue\JobType\JobTypeBase;

/**
 * Retry job type.
 *
 * @AdvancedQueueJobType(
 *   id = "retry",
 *   label = @Translation("Retry"),
 *   max_retries = 1,
 *   retry_delay = 1,
 * )
 */
class Retry extends JobTypeBase {

  /**
   * {@inheritdoc}
   */
  public function process(Job $job) {
    return JobResult::failure();
  }

}

Classes

Namesort descending Description
Retry Retry job type.