Skip to content

Commit

Permalink
Merge pull request #18583 from agrare/dont_start_multiple_refresh_wor…
Browse files Browse the repository at this point in the history
…kers

Don't start another refresh worker while another is stopping
  • Loading branch information
Fryguy authored Mar 25, 2019
2 parents 20b5b2d + 1ab6883 commit a1ba070
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/manageiq/providers/base_manager/refresh_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ class ManageIQ::Providers::BaseManager::RefreshWorker < MiqQueueWorkerBase

include PerEmsWorkerMixin

# Don't allow multiple refresh workers to run at once
self.include_stopping_workers_on_synchronize = true
self.required_roles = "ems_inventory"

def friendly_name
Expand Down

0 comments on commit a1ba070

Please sign in to comment.