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

Timeout parameter change #5486

Closed
coder2000 opened this issue Aug 23, 2022 · 0 comments
Closed

Timeout parameter change #5486

coder2000 opened this issue Aug 23, 2022 · 0 comments

Comments

@coder2000
Copy link

Ruby version: 3.1
Rails version: 7.0.3.2
Sidekiq / Pro / Enterprise version(s): 6.5.5

initializer:

Sidekiq.configure_server do |config|
  config.redis = {url: ENV["REDIS_URL"] || "redis://localhost:6379/0"}
end

Sidekiq.configure_client do |config|
  config.redis = {url: ENV["REDIS_URL"] || "redis://localhost:6379/0"}
end
Passing the timeout as a positional argument is deprecated, it should be passed as a keyword argument:
  redis.brpop("queue:default", timeout: 2)(called from: /home/coder2000/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/sidekiq-6.5.5/lib/sidekiq/fetch.rb:49:in `block in retrieve_work')
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

No branches or pull requests

1 participant