-
Notifications
You must be signed in to change notification settings - Fork 70
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
Upgrade redis #90
Upgrade redis #90
Conversation
README.md
Outdated
@@ -80,7 +80,7 @@ require "resque_pause_helper" | |||
|
|||
require "solid_queue" | |||
|
|||
Resque.redis = Redis::Namespace.new "#{Rails.env}", redis: Redis.new(host: "localhost", port: 6379, thread_safe: true) | |||
Resque.redis = Redis::Namespace.new "#{Rails.env}", redis: Redis.new(host: "localhost", port: 6379) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is thread_safe: true
the default on Redis 4 client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superseded by #101
@@ -261,7 +261,7 @@ def requeue(job) | |||
resque_job = job.raw_data | |||
resque_job["retried_at"] = Time.now.strftime("%Y/%m/%d %H:%M:%S") | |||
|
|||
redis.lset(queue_redis_key, job.position, resque_job) | |||
redis.lset(queue_redis_key, job.position, resque_job.to_json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superseded by #102
It works with redis 4 and redis 5