enable Async and configure the Sidekiq client
This commit is contained in:
parent
057e9f0379
commit
d7ee8b4d3b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user