Skip to content

Commit

Permalink
Stop connecting to an application by default in the console
Browse files Browse the repository at this point in the history
This will mess up enqueuing jobs from the console when using multiple
adapters because of being in the middle of a migration, and only
configuring one of them for Mission Control (eg. migrating from Sidekiq
to Solid Queue).
  • Loading branch information
rosa committed Oct 29, 2024
1 parent 9923a74 commit 39ace57
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/mission_control/jobs/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ class Engine < ::Rails::Engine
MissionControl::Jobs.delay_between_bulk_operation_batches = 2
MissionControl::Jobs.logger = ActiveSupport::Logger.new(STDOUT)

if MissionControl::Jobs.applications.one? && (application = MissionControl::Jobs.applications.first) && application.servers.one?
MissionControl::Jobs::Current.application = application
MissionControl::Jobs::Current.server = application.servers.first
end

if MissionControl::Jobs.show_console_help
puts "\n\nType 'jobs_help' to see how to connect to the available job servers to manage jobs\n\n"
end
Expand Down

0 comments on commit 39ace57

Please sign in to comment.