Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting Redis causes error retrieving delayed tasks #9

Closed
tsoslow opened this issue Nov 5, 2019 · 2 comments
Closed

Restarting Redis causes error retrieving delayed tasks #9

tsoslow opened this issue Nov 5, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@tsoslow
Copy link

tsoslow commented Nov 5, 2019

I'm running a processor using Run(ctx). Everything works great until I restart redis server. It's not uncommon for our systems to have hiccups, so I would hope that the server picks up where it left off. It simply stops working and I don't see anything unless I turn on development logging. Then I see the following:

ERROR	logging/logging.go:123	Received error when retrieving delayed tasks	{"error": "unable to ZPOPBYSCORE PrefixQueue:delay: NOSCRIPT No matching script. Please use EVAL.", "errorVerbose": "NOSCRIPT No matching script. Please use EVAL.\nunable to ZPOPBYSCORE PrefixQueue:delay\ngithub.com/thoas/bokchoy.(*redisBroker).Consume\n\t/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/broker_redis.go:198\ngithub.com/thoas/bokchoy.(*Queue).consume\n\t/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/queue.go:308\ngithub.com/thoas/bokchoy.(*Queue).ConsumeDelayed\n\t/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/queue.go:299\ngithub.com/thoas/bokchoy.(*Queue).consumeDelayedTasks.func1\n\t/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/queue.go:150\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}
github.com/thoas/bokchoy/logging.wrapLogger.Error
	/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/logging/logging.go:123
github.com/thoas/bokchoy.loggerTracer.Log
	/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/tracer.go:32
github.com/thoas/bokchoy.(*Queue).consumeDelayedTasks.func1
	/userdir/go/pkg/mod/github.com/thoas/bokchoy@v0.1.0/queue.go:152
@thoas thoas added the bug Something isn't working label Nov 6, 2019
@thoas
Copy link
Owner

thoas commented Nov 6, 2019

Thank you for the report.

@thoas
Copy link
Owner

thoas commented Dec 1, 2019

fixed in the current upstream.

@thoas thoas closed this as completed Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants