ostark / craft-async-queue

Async Queue Handler for Craft 3 and 4
MIT License
93 stars 7 forks source link

Delayed job causes queue to stall #58

Closed iamkeir closed 1 year ago

iamkeir commented 2 years ago

Not 100% sure the cause but it seems that if a job goes into the queue as "delayed", it seems to stall the queue from running and no jobs process.

For example, on order complete, as well as the job for sending an order email, we have a plugin, Klaviyo Connect, that pushes a job to the queue. However, this job goes in as delayed initially, then switches to pending, but the queue does not process any of the jobs.

If I then disable the Klaviyo Connect plugin, and make another order, the email job (and any others) process fine.

I don't believe it is the Klaviyo Connect plugin issue, but rather something linked to a delayed job - as when using the Craft queue, all jobs process correctly, including Klaviyo Connect.

Any thoughts?

screenshot_328 screenshot_329
ostark commented 1 year ago

Sorry, there is no guarantee that the plugin works with delayed jobs. They get picked up eventually, but not within the specified delay.