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

Fix build: Use Sidekiq Explicit Configuration #45310

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 15 additions & 4 deletions activejob/test/support/integration/adapters/sidekiq.rb
Expand Up @@ -53,10 +53,21 @@ def start_workers

require "sidekiq/cli"
require "sidekiq/launcher"
sidekiq = Sidekiq::Launcher.new(queues: ["integration_tests"],
environment: "test",
concurrency: 1,
timeout: 1)
if Sidekiq.respond_to?(:[]=)
config = Sidekiq
config[:queues] = ["integration_tests"]
config[:environment] = "test"
config[:concurrency] = 1
config[:timeout] = 1
else
config = {
queues: ["integration_tests"],
environment: "test",
concurrency: 1,
timeout: 1
}
end
sidekiq = Sidekiq::Launcher.new(config)
Sidekiq.average_scheduled_poll_interval = 0.5
Sidekiq.options[:poll_interval_average] = 1
begin
Expand Down