enable Async and configure the Sidekiq client

This commit is contained in:
Tyranja 2015-01-23 14:49:47 +01:00
parent 057e9f0379
commit d7ee8b4d3b

View File

@ -5,6 +5,7 @@ require 'travis/api/workers/build_cancellation'
require 'travis/support/amqp'
Travis::Database.connect
Travis::Async.enabled = true
Travis::Amqp.config = Travis.config.amqp
Travis::Metrics.setup
Travis::Notification.setup
@ -12,3 +13,7 @@ Travis::Notification.setup
Sidekiq.configure_server do |config|
config.redis = Travis.config.redis.merge(namespace: Travis.config.sidekiq.namespace)
end
Sidekiq.configure_client do |config|
config.redis = Travis.config.redis.merge(size: 1, namespace: Travis.config.sidekiq.namespace)
end