HDT3213 / delayqueue

Simple, reliable, installation-free distributed delayed delivery message queue in Go. 简单、可靠、免安装的分布式延时投递消息队列
https://www.cnblogs.com/Finley/p/16400287.html
Apache License 2.0
303 stars 54 forks source link

consume error: pending2ReadyScript failed: ERR bad lua script for redis cluster, first parameter of redis.call/redis.pcall must be a single literal string #12

Closed jimersylee closed 6 months ago

jimersylee commented 10 months ago

使用时报错

各个版本

使用方式

初始化时使用了UseHashTagKey() delayQueue := delayqueue.NewQueue(queueName, RedisInstance, consumer, delayqueue.UseHashTagKey()).WithConcurrent(concurrent)

HDT3213 commented 9 months ago

阿里云集群版 Redis 的 lua 脚本里 redis.call 第一个参数必须是字符串字面量, 我看看有什么办法绕过去

HDT3213 commented 9 months ago

最新的 master 分支(461d5a1)上已经修复了,更新一下试试:

go get -u github.com/hdt3213/delayqueue@master

HDT3213 commented 9 months ago

@jimersylee helllo, 现在能正常使用了吗?

jimersylee commented 6 months ago

可以了, 谢谢您🙏 ♥️&☮️