user1479816
user1479816

Reputation: 1

Why laravel queue attempting same job multiple time if email address is valid?

I have to send mail through laravel application, first I used simple laravel Mail function, but it was taking lot of time when I was sending 10-15 emails, So I implement Queue. Also put command - php artisan queue:work - on server.

Issue is sometime it executes all job properly and sometime all jobs will fail, even if I have added correct To-email address. Also why its trying single job multiple time? why its not sending mail same time when first time it executing job?

This is how I am calling dispacher in my controller.

 foreach($userList as $user){
            dispatch(new queueMail($data));
 }

Upvotes: 0

Views: 477

Answers (1)

LZong
LZong

Reputation: 59

Same thought here, so far, I think it's due to OS issue that the OS terminates the job worker because of the CPU or RAM shortage. For me, such situation usaully observed at a small CPU and RAM machine.

Upvotes: 0

Related Questions