-
Notifications
You must be signed in to change notification settings - Fork 482
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
NoMethodError when accessing Redis in enqueue hooks with redis 4.x #779
Comments
This looks like yet another issue caused by #767, because it tries to wrap all the enqueues done by resque-scheduler in a So effectively, this is what's happening:
See also: |
We have updated resque-scheduler to 4.9.0 in our project and we are getting an error on
before_enqueue
while running a delayed job.The same error is occurring in 4.10.0 as well.
The error occurs when using redis-rb 4.x and not with 5.x. However, we have not been able to update to 5.x due to dependency issues, so is there any way to resolve this error while still using 4.x?
I guess it has something to do with #773.
Expected behavior
No errors.
Actual behavior
NoMethodError is raised.
Full log:
Steps to reproduce the problem
Resque.size
andResque.peek
inbefore_enqueue
.Repository for reproduction: https://github.com/m-shimojo/repro-resque-scheduler-hooks-issue
The text was updated successfully, but these errors were encountered: