1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix redis database URLs to use numeric indexes, #83

This commit is contained in:
Mike Perham 2012-03-18 20:09:27 -07:00
parent ffd3b92aa3
commit b5502fa89f
4 changed files with 5 additions and 5 deletions

View file

@ -1 +1 @@
- reschedule failed tasks
- Make the Web UI less ugly

View file

@ -2,12 +2,12 @@ require 'sidekiq'
# If your client is single-threaded, we just need a single connection in our Redis connection pool
Sidekiq.configure_client do |config|
config.redis = Sidekiq::RedisConnection.create(:namespace => 'x', :size => 1, :url => 'redis://redis.host:1234/db')
config.redis = Sidekiq::RedisConnection.create(:namespace => 'x', :size => 1, :url => 'redis://redis.host:1234/14')
end
# Sidekiq server is multi-threaded so our Redis connection pool size defaults to concurrency (-c)
Sidekiq.configure_server do |config|
config.redis = Sidekiq::RedisConnection.create(:namespace => 'x', :url => 'redis://redis.host:1234/db')
config.redis = Sidekiq::RedisConnection.create(:namespace => 'x', :url => 'redis://redis.host:1234/14')
end
# Start up sidekiq via

View file

@ -12,7 +12,7 @@ class SinatraWorker
include Sidekiq::Worker
def perform(msg="lulz you forgot a msg!")
$redis.lpush("sinkiq-example-messages", msg)
$redis.lpush("sinkiq-example-messages", msg)
end
end

View file

@ -13,4 +13,4 @@ require 'sidekiq/util'
Sidekiq::Util.logger.level = Logger::ERROR
require 'sidekiq/redis_connection'
REDIS = Sidekiq::RedisConnection.create(:url => 'redis://localhost/sidekiq_test')
REDIS = Sidekiq::RedisConnection.create(:url => "redis://localhost/15")