Allow for parellel log workers (#891)

* ✔️ Parellelize log workers
pull/893/head
Rick Carlino 2018-06-19 15:57:18 -05:00 committed by GitHub
parent 110d7acd87
commit 68a122faee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -29,10 +29,10 @@ class Transport
end
def log_channel
@log_channel ||= self.connection
.create_channel
.queue("", exclusive: true)
.bind("amq.topic", routing_key: "bot.*.logs")
@log_channel ||= self.connection
.create_channel
.queue("api_log_workers")
.bind("amq.topic", routing_key: "bot.*.logs")
end
def amqp_topic

View File

@ -13,6 +13,7 @@ module FarmBot
# Bullet.enable = true
# Bullet.console = true
# end
config.assets.compile = false
config.active_job.queue_adapter = :delayed_job
config.action_dispatch.perform_deep_munge = false
I18n.enforce_available_locales = false