mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Nearing a 0.7.0 release...
This commit is contained in:
parent
e15e6d8ae5
commit
737b7d7dbc
2 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
HEAD
|
||||
0.7.0
|
||||
-----------
|
||||
|
||||
- Refactor global configuration into Sidekiq.configure\_server and
|
||||
Sidekiq.configure\_client blocks. (mperham)
|
||||
- Add optional middleware FailureJobs which saves failed jobs to a
|
||||
'failed' queue (fbjork)
|
||||
- Upon shutdown, workers are now terminated after 5 seconds. This is to
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
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')
|
||||
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')
|
||||
end
|
||||
|
||||
# Start up sidekiq via
|
||||
# ./bin/sidekiq -r ./examples/por.rb
|
||||
# and then you can open up an IRB session like so:
|
||||
|
|
Loading…
Reference in a new issue