Created
February 14, 2017 23:46
-
-
Save esmerino/c796bbf7364e17539adf53b8c71b8c92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sidekiq' | |
require 'sidekiq/api' | |
require 'sidekiq-status' | |
Sidekiq.configure_server do |config| | |
config.redis = { url: 'redis://localhost:6379/0' } | |
config.server_middleware do |chain| | |
chain.add Sidekiq::Status::ServerMiddleware, expiration: 30.minutes | |
end | |
config.client_middleware do |chain| | |
chain.add Sidekiq::Status::ClientMiddleware, expiration: 30.minutes | |
end | |
end | |
Sidekiq.configure_client do |config| | |
config.redis = { url: 'redis://localhost:6379/0' } | |
config.client_middleware do |chain| | |
chain.add Sidekiq::Status::ClientMiddleware, expiration: 30.minutes | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment