advancedqueue-8.x-1.x-dev/src/Annotation/AdvancedQueueJobType.php

src/Annotation/AdvancedQueueJobType.php
<?php

namespace Drupal\advancedqueue\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an advanced queue job type.
 *
 * Plugin Namespace: Plugin\AdvancedQueue\JobType.
 *
 * @Annotation
 */
class AdvancedQueueJobType extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * The maximum number of retries.
   *
   * @var int
   */
  public $max_retries = 0;

  /**
   * The retry delay.
   *
   * @var int
   */
  public $retry_delay = 10;

  /**
   * Whether duplicate jobs of this type are allowed.
   *
   * Not all backends can detect duplicates; if duplicates are not allowed
   * then ensure the backend used implements
   * SupportsDetectingDuplicateJobsInterface.
   *
   * @var bool
   */
  public bool $allow_duplicates = TRUE;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc