eventq_rabbitmq 1.17.0 → 1.17.1
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: 724231d79e0e0c9f20752a53005b3b6f83585751
|
4
|
+
data.tar.gz: a51c1bcc71fdbad744bef0265ae3ef581fef2e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d732f9835570c5bfa441ac51b0d53482cdaf33cb208d97bf4060dd2f29ac1bb033ab24e4c8913b2e31703ee84c66953c9e3ffc80bd193299991f5f336e86d914
|
7
|
+
data.tar.gz: 56737e97da05b19809498e99e7de51d19446053931d6e1ebd04a8fe289cea779f972a44e590b0b0408563dc3c24d971c960151882bfb097fbbe727881dc0f307
|
@@ -8,8 +8,6 @@ module EventQ
|
|
8
8
|
attr_accessor :is_running
|
9
9
|
|
10
10
|
def initialize
|
11
|
-
@threads = []
|
12
|
-
@forks = []
|
13
11
|
@is_running = false
|
14
12
|
|
15
13
|
@retry_exceeded_block = nil
|
@@ -41,6 +39,7 @@ module EventQ
|
|
41
39
|
|
42
40
|
start_process(options, queue, block)
|
43
41
|
|
42
|
+
return true
|
44
43
|
end
|
45
44
|
|
46
45
|
def start_process(options, queue, block)
|
@@ -303,17 +302,12 @@ module EventQ
|
|
303
302
|
@sleep = options[:sleep]
|
304
303
|
end
|
305
304
|
|
306
|
-
@fork_count = 1
|
307
|
-
if options.key?(:fork_count)
|
308
|
-
@fork_count = options[:fork_count]
|
309
|
-
end
|
310
|
-
|
311
305
|
@gc_flush_interval = 10
|
312
306
|
if options.key?(:gc_flush_interval)
|
313
307
|
@gc_flush_interval = options[:gc_flush_interval]
|
314
308
|
end
|
315
309
|
|
316
|
-
EventQ.logger.info("[#{self.class}] - Configuring.
|
310
|
+
EventQ.logger.info("[#{self.class}] - Configuring. Thread Count: #{@thread_count} | Interval Sleep: #{@sleep}.")
|
317
311
|
|
318
312
|
return true
|
319
313
|
|
@@ -45,12 +45,12 @@ module EventQ
|
|
45
45
|
with_connection do |channel|
|
46
46
|
exchange = @queue_manager.get_exchange(channel, @event_raised_exchange)
|
47
47
|
|
48
|
-
message = serialized_message(
|
48
|
+
message = serialized_message(event_type, event, context)
|
49
49
|
|
50
50
|
exchange.publish(message, routing_key: _event_type)
|
51
51
|
|
52
52
|
EventQ.logger.debug do
|
53
|
-
"[#{self.class}] - Raised event to Exchange: #{_event_type} | Message: #{message}."
|
53
|
+
"[#{self.class}] - Raised event to Exchange. Routing Key: #{_event_type} | Message: #{message}."
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -73,12 +73,12 @@ module EventQ
|
|
73
73
|
q = channel.queue(_queue_name, durable: @queue_manager.durable)
|
74
74
|
q.bind(exchange, routing_key: _event_type)
|
75
75
|
|
76
|
-
message = serialized_message(
|
76
|
+
message = serialized_message(event_type, event, context)
|
77
77
|
|
78
78
|
delay_exchange.publish(message, routing_key: _event_type)
|
79
79
|
|
80
80
|
EventQ.logger.debug do
|
81
|
-
"[#{self.class}] - Raised event to
|
81
|
+
"[#{self.class}] - Raised event to Queue: #{_queue_name} | Message: #{message} | Delay: #{delay}."
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
@@ -27,7 +27,7 @@ module EventQ
|
|
27
27
|
connection.close
|
28
28
|
|
29
29
|
EventQ.logger.debug do
|
30
|
-
"[#{self.class} #subscribe] - Subscribing queue: #{
|
30
|
+
"[#{self.class} #subscribe] - Subscribing queue: #{queue.name} to Exchange: #{_event_type}"
|
31
31
|
end
|
32
32
|
|
33
33
|
return true
|
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.17.
|
4
|
+
version: 1.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|