Complete the code to set Sidekiq as the Active Job queue adapter in Rails.
Rails.application.config.active_job.queue_adapter = :[1]Sidekiq is set as the queue adapter by assigning :sidekiq to queue_adapter.
Complete the initializer code to require Sidekiq in a Rails app.
require '[1]'
You need to require the sidekiq gem to use it in your Rails app.
Fix the error in this Sidekiq configuration line to set concurrency to 10.
Sidekiq.configure_server do |config| config.[1] = 10 end
The correct configuration key for Sidekiq concurrency is concurrency.
Fill both blanks to configure Sidekiq client and server with Redis URL.
Sidekiq.configure_[1] do |config| config.redis = { url: 'redis://localhost:6379/0' } end Sidekiq.configure_[2] do |config| config.redis = { url: 'redis://localhost:6379/0' } end
Sidekiq needs separate configuration blocks for server and client to set Redis URL.
Fill all three blanks to create a Sidekiq worker class that performs a job.
class [1]Worker include Sidekiq::Worker def [2](name) puts "Hello, [3]!" end end
The worker class is named with 'Worker' suffix, the method to run jobs is perform, and the argument is typically named name here.