ostark / craft-async-queue

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

Moved a client's site to Commerce 3 and emails not sending #64

Closed joneslafuente closed 9 months ago

joneslafuente commented 2 years ago

Hi, successfully updated a client's site to Craft 3/Commerce 3 and all is good apart from order emails not being sent. I have read various threads and came across your plugin. Installed and was hoping all would be working but no. now we see the queue and is stuck on pending. Never gets pas this stage. Is there something else I need to be doing?

I am not a developer so the plugin route for me was the best option.

Using Craft 3.7.57 and Commerce 3.4.17.2. Is AsyncQueue 2.3.0 the latest that can be installed? That is all I see in the plugin store.

Many thanks

Brian

jmauzyk commented 1 year ago

@ostark We're running into this as well. Do you have any suggestions for troubleshooting to try and resolve this issue?

ostark commented 1 year ago

Did it work before?

Check your console.log and queue.log

jmauzyk commented 1 year ago

It worked prior to Commerce 3 and 4. No warnings or errors to speak of in either console.log or queue.log.

jmauzyk commented 11 months ago

I looked into this a bit more and think I figured out a resolution. For us, this issue was only happening on order completion when our order confirmation email is supposed to be sent. After digging into what was happening in the queue, it seemed like there weren't enough queue runners and they were getting overwhelmed by several Updating search indexes jobs that are queued on or around order completion.

Updating the ASYNC_QUEUE_CONCURRENCY setting to 5 seems to have resolved the issue so far.

ostark commented 9 months ago

I can't imagine increasing the limit was the actual solution to your problem.

Imagination is more important than knowledge.

Closing.