lib/mission_control/jobs/application.rb in mission_control-jobs-0.3.3 vs lib/mission_control/jobs/application.rb in mission_control-jobs-0.4.0

- old
+ new

@@ -9,9 +9,12 @@ @servers = MissionControl::Jobs::IdentifiedElements.new end def add_servers(queue_adapters_by_name) queue_adapters_by_name.each do |name, queue_adapter| - servers << MissionControl::Jobs::Server.new(name: name.to_s, queue_adapter: queue_adapter, application: self) + adapter, cleaner = queue_adapter + + servers << MissionControl::Jobs::Server.new(name: name.to_s, queue_adapter: adapter, + backtrace_cleaner: cleaner, application: self) end end end