Closed yoage closed 6 years ago
can you show your queue and redis component configuration?
@cebe this is my configure
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => '127.0.0.1',
'port' => 6379,
'database' => 10,
], // connection ID
'channel' => 'queue_dev', // queue channel
'as log' => \yii\queue\LogBehavior::class,
],
If anyone restarts redis, similar error will be raised. @yoage, maybe is this cause of the problem?
Same problem, Even when I switch to DB I get "Has not waited the lock."
Yii2 2.0.13 yii2-queue 2.0.1 redis 4.0.2 mysql 5.7.20
@skakac what do you mean, when tell, that you switch to DB? The exception is thrown when worker is not able to get a lock using mutex.
By switching to DB I meant after I was getting this errors mentioned in issue description above, I then made/configured queue with DB driver, which also works but from time to time queue workers get "Has not waited the lock." errors.
Btw im using docker for db, redis and php, so maybe that can cause the problem?
the problem should be fixed by https://github.com/yiisoft/yii2-redis/pull/106 if you configure redis to retry connecting on socket error. https://github.com/yiisoft/yii2-redis/blob/master/Connection.php#L295-L301
the problem should be fixed by yiisoft/yii2-redis#106 if you configure redis to retry connecting on socket error. https://github.com/yiisoft/yii2-redis/blob/master/Connection.php#L295-L301
When I set the retries parameter to 1, the error failed to open redis DB connection (TCP: / / 127.0.0.1:6379, database = 1): 111 - connection rejected will occur if the queue / listen time is too long
hi,I use queue with redis and real-time operation. I got some error and the process was closed.
start up queue script
A few hours later ,I got error message and the process was closed.
my redis's version 3.2.8 my Yii2's version 2.0.12 php 7.1.5
Can you help me with this? Thank you.