Skip to content

Conversation

@vitalinfo
Copy link

Fix: #62

@vitalinfo vitalinfo changed the title Batch delete from web fix, Start gem improved Batch delete from web fix, Start gem improved, Support Sidekiq 8 May 27, 2025
vitalinfo and others added 2 commits January 6, 2026 13:49
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
Copy link
Collaborator

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
Copy link
Collaborator

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?
Copy link
Collaborator

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|
Copy link
Collaborator

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]

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.

No route matches [POST] "/sidekiq/grouping/{group}/delete"

2 participants