messaging 4.0.8 → 4.0.10.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/messaging/adapters/postgres/consumer.rb +15 -0
- data/lib/messaging/routing.rb +0 -4
- data/lib/messaging/routing_23.rb +0 -3
- data/lib/messaging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3d0d1e999021d79c08ce1bcaf43a6add32ca27107e875c2dbcdf44fb598c17
|
4
|
+
data.tar.gz: cc54ac065a44ae2853da4da87b752a44885f7440d15465ac4b6567df176011c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd056343bde3997159cd5cc1e3073cfc6a5b2e04729595452b67c4a1d7c11b194e539de703c96db5df52486e10523bdb359b0dd8d973a55fbc5209c1f539a20
|
7
|
+
data.tar.gz: d04c60427cc9d53bccb0b003e09f9f7a2371c821599d8e17312b41f1b485f6c045719ae4d38917540f1dd007b20e49152e7031a79b0b7873511dc303b5cca993
|
data/Gemfile.lock
CHANGED
@@ -34,6 +34,10 @@ module Messaging
|
|
34
34
|
|
35
35
|
private
|
36
36
|
|
37
|
+
def categories
|
38
|
+
@categories ||= routes.flat_map(&:categories).map(&:to_s).uniq
|
39
|
+
end
|
40
|
+
|
37
41
|
def refresh_latest_processed_transaction_id
|
38
42
|
reload
|
39
43
|
return if last_processed_transaction_id.present?
|
@@ -58,6 +62,17 @@ module Messaging
|
|
58
62
|
Middleware.run(Config.consumer.middlewares, message) { handle message }
|
59
63
|
self.last_processed_position = message.global_position
|
60
64
|
self.last_processed_transaction_id = message.transaction_id
|
65
|
+
rescue StandardError => e
|
66
|
+
ExceptionHandler.call(e,
|
67
|
+
{
|
68
|
+
consumer: name,
|
69
|
+
transaction_id: message.transaction_id,
|
70
|
+
message: message.inspect
|
71
|
+
}
|
72
|
+
)
|
73
|
+
|
74
|
+
sleep 10
|
75
|
+
retry if @running
|
61
76
|
end
|
62
77
|
|
63
78
|
def pause_polling_for_5_s
|
data/lib/messaging/routing.rb
CHANGED
data/lib/messaging/routing_23.rb
CHANGED
data/lib/messaging/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.10.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|