Skip to content

setPendingTimer定时器自动ack方法有bug #15

@timelessonly

Description

@timelessonly

https://github.com/workbunny/webman-rqueue/blob/master/src/Builders/Traits/MessageQueueMethod.php,351行这里的$datas[2]永远都是空数组
if ($datas = $datas[2] ?? []) {
redis6.2版本中xAutoClaim命令查询出来

Image

redis7.4版本中xAutoClaim命令查询出来

Image

建议修改为
if ($datas = $datas[1] ?? []) {

https://github.com/workbunny/webman-rqueue/blob/master/src/Builders/Traits/MessageQueueMethod.php,352行
if ($client->xAck($queueName, $groupName, $datas)) {
建议修改为
if ($client->xAck($queueName, $groupName, array_keys($datas))) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions