Allow extractor plugin to throw DelayedRequeueException

Created on 5 July 2023, 12 months ago

Problem/Motivation

I am adding a new extractor plugin where the service will be asynchronous. So the first time I will create a job with the service and then I want to check this again in the next cron run. We already have 'DelayedRequeueException' → where we can use this to delay the current item in queue for a specific time or till next cron run. But in the current QueueWorker plugin, all exceptions are being caught and retried for 5 times (which will happen without delay).

Steps to reproduce

-

Proposed resolution

In QueueWorker plugin, check if the exception is of type 'DelayedRequeueException'. If so, we throw it and if not we retry as cuttenyly does.

Remaining tasks

Test and create patch as explained above.

User interface changes

-

API changes

-

Data model changes

-

✨ Feature request
Status

Needs review

Version

9.0

Component

Code

Created by

🇮🇳India varshith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024