SuspendQueueException.php 652 B

123456789101112131415
  1. <?php
  2. namespace Drupal\Core\Queue;
  3. /**
  4. * Exception class to throw to indicate that a cron queue should be skipped.
  5. *
  6. * An implementation of \Drupal\Core\Queue\QueueWorkerInterface::processItem()
  7. * throws this class of exception to indicate that processing of the whole queue
  8. * should be skipped. This should be thrown rather than a normal Exception if
  9. * the problem encountered by the queue worker is such that it can be deduced
  10. * that workers of subsequent items would encounter it too. For example, if a
  11. * remote site that the queue worker depends on appears to be inaccessible.
  12. */
  13. class SuspendQueueException extends \RuntimeException {}