Skip to content

Commit

Permalink
Merge pull request #16359 from juliancheal/fix_stopping_multi_ems_wor…
Browse files Browse the repository at this point in the history
…kers

Find_by_queue_name expects a string as queue_name.
  • Loading branch information
Fryguy authored Oct 31, 2017
2 parents 5e6a561 + 32d8b5e commit 4fd6cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mixins/per_ems_worker_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def start_worker_for_ems(ems_or_queue_name)

def stop_worker_for_ems(ems_or_queue_name)
wpid = nil
find_by_queue_name(queue_name_for_ems(ems_or_queue_name)).each do |w|
find_by_queue_name(queue_name_for_ems(ems_or_queue_name).to_s).each do |w|
next unless w.status == MiqWorker::STATUS_STARTED
wpid = w.pid
w.stop
Expand Down

0 comments on commit 4fd6cfb

Please sign in to comment.