messaging 4.0.8 → 4.0.10.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f905acc6e7fb4a8475648b2007787c8a8019bfe19c402e7d052fbeac5f50fb37
4
- data.tar.gz: a934234063a52c36daa669129f44f3fb999b8945eb35a0d7f6c0181e5abba721
3
+ metadata.gz: 9d3d0d1e999021d79c08ce1bcaf43a6add32ca27107e875c2dbcdf44fb598c17
4
+ data.tar.gz: cc54ac065a44ae2853da4da87b752a44885f7440d15465ac4b6567df176011c1
5
5
  SHA512:
6
- metadata.gz: 6275d0dfacce6c3c5957bb28aa1b374af0b61aeef5a3cd8965ee1e2cce6ebb51f350fcdb4cd8ae50bf94027227cd74b7996e124df3e89989ae0549adb4569289
7
- data.tar.gz: 68b1baa8eba18ff12dd878b2fe56582ebb4950f4dc5fbabaddd05a706eaf654b9286e0ee2538eda393eba1459fba0dfcc260cea32c36b2a1b6c47c7abfa29a81
6
+ metadata.gz: 2bd056343bde3997159cd5cc1e3073cfc6a5b2e04729595452b67c4a1d7c11b194e539de703c96db5df52486e10523bdb359b0dd8d973a55fbc5209c1f539a20
7
+ data.tar.gz: d04c60427cc9d53bccb0b003e09f9f7a2371c821599d8e17312b41f1b485f6c045719ae4d38917540f1dd007b20e49152e7031a79b0b7873511dc303b5cca993
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- messaging (4.0.7)
4
+ messaging (4.0.9)
5
5
  activerecord
6
6
  activesupport
7
7
  after_transaction
@@ -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
@@ -89,9 +89,5 @@ module Messaging
89
89
  def topics
90
90
  routes.flat_map(&:topics).map(&:to_s).uniq
91
91
  end
92
-
93
- def categories
94
- routes.flat_map(&:categories).map(&:to_s).uniq
95
- end
96
92
  end
97
93
  end
@@ -90,8 +90,5 @@ module Messaging
90
90
  routes.flat_map(&:topics).map(&:to_s).uniq
91
91
  end
92
92
 
93
- def categories
94
- routes.flat_map(&:categories).map(&:to_s).uniq
95
- end
96
93
  end
97
94
  end
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '4.0.8'.freeze
2
+ VERSION = '4.0.10.pre'.freeze
3
3
  end
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.8
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-08-07 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord