Closed milon closed 5 years ago
Not sure if related - but you said:
I have 4 different queue priority, highest, high, default and low
But your supervisor config is
--queue=high,default,low
So you are not even processing the highest
queue tube? It should be:
--queue=highest,high,default,low
@laurencei, oww sorry. that was a typo. The config is actually-
--queue=highest,high,default,low
Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.
Description:
I am using lumen 5.2(because I have use php 5.5, the library I am using for connecting to SMPP works on 5.5) for an SMS sending server. I have 4 different queue priority,
highest
,high
,default
andlow
. I am using Redis as my queue driver.Whenever a user requested for sending an SMS, it sends a Job to the queue based on priority. The job is really simple, just open a SMPP connection and send the SMS, then close the connection.
I am running the queue listener with supervisor. Here is the config of supervisor-
The system working fine for most of the time, but sometimes it stops dispatching job from queue. In the error log, I found this-
I searched with the error, and found out this thread- https://github.com/laravel/framework/issues/9555.
Then I log into redis console and after running
KEYS *
, I found a new key calledqueues:highest:delayed
and if I delete it with withDEL
command, then the queue started working fine agian. From where It comes. I don't use anydelay()
dispatch option anywhere in my code.I also checked what this key contains. It's a sorted set and it contains value something like this-
So, it is failing while processing the job. From where this value comes from? How can I get rid of this?