I have set up my Laravel application to retrieve messages from an SQS queue. Everything works fine during normal operation: Messages are added to the queue when a queueable job is dispatched, and the queue worker grabs the message from SQS and runs the job successfully.
However, I run into problems whenever I use the "View Messages" feature in the SQS web console. Here are the steps to reproduce:
Why is this happening? I'm running Laravel 5.2.41 on PHP 5.6.
I figured out what was happening:
To solve this, I added an extra retry "buffer" to my queue workers:
php artisan queue:work redis --tries=3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.