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

Upgrade redis #90

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Upgrade redis #90

merged 4 commits into from
Apr 3, 2024

Conversation

dorianmariecom
Copy link
Contributor

It works with redis 4 and redis 5

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)
Copy link
Member

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?

Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by #102

@rosa rosa merged commit 15a6924 into rails:main Apr 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants