-
Notifications
You must be signed in to change notification settings - Fork 59
Batch delete from web fix, Start gem improved, Support Sidekiq 8 #63
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
base: master
Are you sure you want to change the base?
Conversation
Get rid ActiveSupport::Configurable; Fixed read config from file for Sidekiq 7+
| Sidekiq[:grouping] || {} | ||
| elsif Sidekiq.respond_to?(:options) # Sidekiq <= 5.x | ||
| Sidekiq.options[:grouping] || Sidekiq.options["grouping"] || {} | ||
| elsif Sidekiq.server? # Sidekiq >= 7.x |
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.
Layout/ExtraSpacing: Unnecessary spacing detected.
| def options | ||
| @options ||= | ||
| begin | ||
| if Sidekiq.respond_to?(:[]) # Sidekiq 6.x |
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.
Layout/IndentationWidth: Use 2 (not 3) spaces for indentation.
| max_batch_size: options[:max_batch_size] || 1_000, | ||
| poll_interval: options[:poll_interval] || 3, | ||
| tests_env: options[:tests_env] || ( | ||
| defined?(::Rails) && ::Rails.respond_to?(:env) && ::Rails.env.test? |
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.
Metrics/LineLength: Line is too long. [81/80]
| else # Sidekiq 7.x | ||
| Sidekiq.default_configuration[:grouping] || {} | ||
| class << self | ||
| %i[lock_ttl max_batch_size poll_interval tests_env].each do |method_name| |
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.
Metrics/LineLength: Line is too long. [81/80]
Fix: #62