mperham/sidekiq

View on GitHub
myapp/simple.ru

Summary

Maintainability
Test Coverage
# Easiest way to run Sidekiq::Web.
# Run with "bundle exec rackup simple.ru"

require 'sidekiq'

# A Web process always runs as client, no need to configure server
Sidekiq.configure_client do |config|
  config.redis = { url: 'redis://localhost:6379/0', size: 1 }
end

Sidekiq::Client.push('class' => "HardWorker", 'args' => [])

require 'sidekiq/web'
run Sidekiq::Web