Skip to content

Commit

Permalink
add dequeue method check to add_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 3, 2023
1 parent 918529a commit 104a16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ems_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def self.bottleneck_event_groups
end

def self.add_queue(meth, ems_id, event)
if MiqQueue.messaging_client('event_handler').present?
if MiqQueue.messaging_client('event_handler').present? && MiqEventHandler.worker_settings[:dequeue_method] != "drb"
MiqQueue.messaging_client('event_handler').publish_topic(
:service => "manageiq.#{MiqEventHandler.default_queue_name}",
:sender => ems_id,
Expand Down

0 comments on commit 104a16b

Please sign in to comment.