Repeated Email Delivery Issue with Mail::later() in Laravel v11.10 #51826
Unanswered
jstarfruits
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Laravel v11.10 with Redis for queue management.
I scheduled emails to be sent to users at 8 AM using
Mail::later()
. It took over an hour to complete all the email deliveries. Then, at 9 AM, all the emails started being sent again, and the same thing repeated at 10 AM. By 11 AM, I received the errorApp\Mail\Mail has been attempted too many times.
, indicating that it failed after 3 retries. There were no errors in the email sending process itself, so I suspect the retries are due to timeouts.I believe the email delivery jobs created by
Mail::later()
are managed as a single job, and the next job starts before the previous one finishes.The
redis.retry_after
setting inqueue.php
is 90 minutes, which seems a bit different from the issue I’m experiencing. I am currently tracing the source, but I haven’t identified the cause yet.Could anyone provide insights or advice on what might be causing this issue and what to look out for?
Beta Was this translation helpful? Give feedback.
All reactions