Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ashitvora's avatar

Queue Handler is never called

I've an app on Laravel 5.2 which uses SQS for Queue. App is running on an EC2 instance. Issue is that many times, after job is pushed to queue, handler is never called. It was working fine till it was on Digital Ocean server.

I couldn't find any ways to see SQS logs to see what the issue can be.

Any idea what can be wrong? Everything is same except the server (i.e Digital Ocean to EC2)

Thanks in advance.

0 likes
1 reply
ashitvora's avatar
ashitvora
OP
Best Answer
Level 4

I found out what the issue was. Not deleting this thread since somebody else may also face the same problem. The issue was I didn't kill my Digital Ocean server and hence supervisor was still running there and listening for Jobs on SQS queue. And in some cases, job was handled by the Worker of Digital Ocean server and updating wrong database. Hence AWS server (which is the actual server) never got chance to process it. :(

Please or to participate in this conversation.