# Sidekiq

Gemfile

 

  gem 'sidekiq'
1

config/sidekiq.rb

Sidekiq.configure_server do |config|
  config.redis = { url: ENV['REDIS_URL'] }
end

Sidekiq.configure_client do |config|
  config.redis = { url: ENV['REDIS_URL'] }
end

1
2
3
4
5
6
7
8

run Sidekiq via

bundle exec sidekiq -e development -r ./config/boot.rb -C ./config/sidekiq.yml
1

# Running in Docker

# Running workers on app startup

config/initializers/sidekiq.rb

Sidekiq.configure_server do |config|
  config.on(:startup) do
      DoSmthAfterSystemStart.perform_async
  end
end

1
2
3
4
5
6

# Statistics

# UI