Configure multiple apps and adapters (Advanced)
mainMission Control allows managing multiple job backends (different apps or different servers/adapters) from a single centralized UI.
To support multiple adapters, first add them to the configuration:
config.mission_control.jobs.adapters = [ :resque, :solid_queue ]Then, use MissionControl::Jobs.applications.add in an initializer to define your apps and their associated servers. The add method expects a mapping where the key is the app name and the value is a hash of servers.
Each server entry in the hash should be an array where:
- The first element is a
String(the symbolic name for the server in the UI). - The second element is an
ActiveJob::QueueAdapters::Baseinstance.
Supported return formats for server mapping:
[ server_name, adapter_instance ][ server_name, [ adapter_instance ] ](behaves identically to #1)[ server_name, [ adapter_instance, backtrace_cleaner ] ](allows overriding the backtrace cleaner for that specific server)
# Example: Adding a single app with mixed adapters
queue_adapters_by_name = {
resque: ActiveJob::QueueAdapters.lookup(:resque).new,
solid_queue: ActiveJob::QueueAdapters.lookup(:solid_queue).new
}
MissionControl::Jobs.applications.add("hey", queue_adapters_by_name)