Problem/Motivation

When you implement custom QueueWorker that throws DelayedRequeueException and use ultimate_cron to manage the queue your log will be filled with exception messages because ultimate_cron does not currently take notice of this new Exception.

See: https://www.drupal.org/project/drupal/issues/3116478

Steps to reproduce

  1. Install ultimate_cron
  2. Create custom QueueWorker that throws DelayedRequeueException
  3. Add some items to queue
  4. Run cron
  5. See logs

Proposed resolution

Implement catch for DelayedRequeueException as implemented here https://www.drupal.org/files/issues/2020-10-27/3116478-78--9.0.x.patch

Remaining tasks

  1. Proposals,
  2. Testing

Comments

oakulm created an issue. See original summary.

oakulm’s picture

StatusFileSize
new1.04 KB

Here is a patch for this

oakulm’s picture

Status: Active » Needs review
oakulm’s picture

StatusFileSize
new1.04 KB

Sorry wrong diff in the previous comment, correct patch included.

  • Berdir committed 705d4ce on 8.x-2.x
    Issue #3311188 by oakulm: Support DelayedRequeueException
    
berdir’s picture

Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.