Skip to content

Commit

Permalink
Remove broker references
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 24, 2020
1 parent 5849004 commit 395a1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions app/models/job_proxy_dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ def dispatch

# Skip work if there are no jobs to dispatch
if jobs_to_dispatch.length > 0
logged_broker_unavailable = false

Benchmark.realtime_block(:active_vm_scans) { active_vm_scans_by_zone }
Benchmark.realtime_block(:busy_proxies) { busy_proxies }
Benchmark.realtime_block(:busy_resources_for_embedded_scanning) { busy_resources_for_embedded_scanning }
Expand Down
8 changes: 2 additions & 6 deletions app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,8 @@ def self.task_arguments(options)
private_class_method :task_arguments

def powerops_callback(task_id, status, msg, result, queue_item)
if queue_item.last_exception.kind_of?(MiqException::MiqVimBrokerUnavailable)
queue_item.requeue(:deliver_on => 1.minute.from_now.utc)
else
task = MiqTask.find_by(:id => task_id)
task.queue_callback("Finished", status, msg, result) if task
end
task = MiqTask.find_by(:id => task_id)
task.queue_callback("Finished", status, msg, result) if task
end

# override
Expand Down

0 comments on commit 395a1d4

Please sign in to comment.