eventq_rabbitmq 1.18.1 → 1.18.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5381524d2211718bb7546c75d018738226b0a804
|
4
|
+
data.tar.gz: 6782a6cb75252c6de9bb02e613a17dd3867a1945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa083370ac51d6599934499b3a28305e1013dc67f648e0a80cd9b07a2b64d734f75fcd19f48de0409d99cb6baebf421390738785da50035e879bab214ae23fd
|
7
|
+
data.tar.gz: 6213f9ddf00982279deeedb301fc9e47ace511e224b8d4012327da0f537f7f5780a9fc0bee9b15def5c464aa355917878e4b3a2b53b7ecaa07ced3d795b56ed1
|
@@ -16,19 +16,19 @@ module EventQ
|
|
16
16
|
|
17
17
|
_queue_name = EventQ.create_queue_name(queue.name)
|
18
18
|
|
19
|
-
#get/create the queue
|
19
|
+
# get/create the queue
|
20
20
|
q = channel.queue(_queue_name, :durable => @durable)
|
21
21
|
|
22
|
+
subscriber_exchange = get_subscriber_exchange(channel, queue)
|
23
|
+
|
22
24
|
if queue.allow_retry
|
23
25
|
retry_exchange = get_retry_exchange(channel, queue)
|
24
|
-
subscriber_exchange = get_subscriber_exchange(channel, queue)
|
25
|
-
|
26
26
|
retry_queue = get_retry_queue(channel, queue)
|
27
27
|
retry_queue.bind(retry_exchange)
|
28
|
-
|
29
|
-
q.bind(subscriber_exchange)
|
30
28
|
end
|
31
29
|
|
30
|
+
q.bind(subscriber_exchange)
|
31
|
+
|
32
32
|
return q
|
33
33
|
end
|
34
34
|
|
@@ -71,11 +71,12 @@ module EventQ
|
|
71
71
|
@connection = client.get_connection
|
72
72
|
|
73
73
|
channel = @connection.create_channel
|
74
|
+
channel.prefetch(1)
|
74
75
|
|
75
76
|
q = manager.get_queue(channel, queue)
|
76
77
|
retry_exchange = manager.get_retry_exchange(channel, queue)
|
77
78
|
|
78
|
-
q.subscribe(:manual_ack => true, :exclusive => false) do |delivery_info, properties, payload|
|
79
|
+
q.subscribe(:manual_ack => true, :block => false, :exclusive => false) do |delivery_info, properties, payload|
|
79
80
|
begin
|
80
81
|
tag_processing_thread
|
81
82
|
process_message(payload, queue, channel, retry_exchange, delivery_info.delivery_tag, block)
|
@@ -116,7 +117,7 @@ module EventQ
|
|
116
117
|
EventQ.logger.info { "[#{self.class}] - Stopping..." }
|
117
118
|
@is_running = false
|
118
119
|
|
119
|
-
|
120
|
+
unless @connection.nil?
|
120
121
|
begin
|
121
122
|
@connection.close if @connection.open?
|
122
123
|
rescue Timeout::Error
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventq_rabbitmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|