delayqueue icon indicating copy to clipboard operation
delayqueue copied to clipboard

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

Open jimersylee opened this issue 1 year ago • 3 comments

使用时报错

各个版本

  • github.com/redis/go-redis/v9 v9.4.0
  • github.com/hdt3213/delayqueue v1.0.4
  • Redis: 阿里云集群版 Redis 6.0 | 集群版(16G,共2分片) | 云原生

使用方式

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

jimersylee avatar Feb 07 '24 09:02 jimersylee

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

HDT3213 avatar Feb 12 '24 04:02 HDT3213

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

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

HDT3213 avatar Feb 12 '24 05:02 HDT3213

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

HDT3213 avatar Feb 18 '24 05:02 HDT3213

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

jimersylee avatar May 17 '24 03:05 jimersylee