yiisoft / yii2-queue

Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman
BSD 3-Clause "New" or "Revised" License
1.07k stars 295 forks source link

When redis is used as the driver, if the system time is modified forward, it will cause deadlock #370

Closed zhushengwen closed 4 years ago

zhushengwen commented 4 years ago

What steps will reproduce the problem?

Adjust system time forward

What's expected?

queue is normally working

What do you get instead?

queue is dead because redis key "queue.moving_lock" can't be released

    if ($this->redis->set("$this->channel.moving_lock", true, 'NX', 'EX', 1)) {
        $this->moveExpired("$this->channel.delayed");
        $this->moveExpired("$this->channel.reserved");
    }

Additional info

Q A
Yii version
PHP version
Operating system
samdark commented 4 years ago

What do you mean by "system time is modified forward"? Adjusting system clock?

yii-bot commented 4 years ago

It has been 2 or more weeks with no response on our request for more information. In order for our issue tracker to be effective, we are closing this issue.

If you want it to be reopened again, feel free to supply us with the requested information.

Thanks!

This is an automated comment, triggered by adding the label expired.