Skip to content

Commit 20aa5c2

Browse files
add quorom queue arguments
1 parent 2e9e00b commit 20aa5c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/acapi/amqp/worker_specification.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def execute_sneakers_config_against(kls)
126126
:heartbeat => 5,
127127
:retry_max_times => #{retry_count},
128128
:arguments => {
129-
:'x-dead-letter-exchange' => "#{retry_exchange_name}"
129+
:'x-dead-letter-exchange' => "#{retry_exchange_name}",
130+
:'x-queue-type' => 'quorum'
130131
}
131132
})
132133
RUBYCODE

lib/acapi/local_amqp_publisher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def open_connection_if_needed
6868
@connection = Bunny.new
6969
@connection.start
7070
@channel = @connection.create_channel
71-
@queue = @channel.queue(QUEUE_NAME, {:durable => true})
71+
@queue = @channel.queue(QUEUE_NAME, {:durable => true, :arguments => {'x-queue-type' => 'quorum'}})
7272
@exchange = @channel.fanout(EXCHANGE_NAME, {:durable => true})
7373
@queue.bind(@exchange, {})
7474
end

0 commit comments

Comments
 (0)