sbmt-outbox 6.19.2 → 6.20.0
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 +4 -4
- data/app/models/sbmt/outbox/base_item.rb +2 -4
- data/lib/sbmt/outbox/probes/metrics.rb +9 -1
- data/lib/sbmt/outbox/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5eb57696c5cf8629d009f7da69a2f74722bc1425dc79853b49416d815204e87
|
4
|
+
data.tar.gz: 33bc6c09ff276884a35e351bbce3f732fad2eb22c7e5e8a3d384ee4b765e551e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8316b5867875b12c96d47a399eefde7962e5d16876c347c9cb7ed376054e79fb8d1ba14ae27dec9188311afbeac87a04dc32729a6e9c99c5274b49dc074d30d1
|
7
|
+
data.tar.gz: 4df45b21bb48f1dc053b6c6625c518a4daad8e6dcef609ad433b9802c91730bf9e090adc16b35397e97d316d0782f66e0a686a3832045f969bb125b2c51755bf
|
@@ -10,6 +10,8 @@ module Sbmt
|
|
10
10
|
class BaseItem < Outbox.active_record_base_class
|
11
11
|
self.abstract_class = true
|
12
12
|
|
13
|
+
delegate :retriable?, to: :class
|
14
|
+
|
13
15
|
class << self
|
14
16
|
delegate :owner, :strict_order, to: :config
|
15
17
|
|
@@ -145,10 +147,6 @@ module Sbmt
|
|
145
147
|
self.processed_at = Time.current
|
146
148
|
end
|
147
149
|
|
148
|
-
def retriable?
|
149
|
-
self.class.retriable?
|
150
|
-
end
|
151
|
-
|
152
150
|
def max_retries_exceeded?
|
153
151
|
self.class.max_retries_exceeded?(errors_count)
|
154
152
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "rackup/handler/webrick" if Gem::Version.new(::Rack.release) >= Gem::Version.new("3")
|
4
|
+
|
3
5
|
module Sbmt
|
4
6
|
module Outbox
|
5
7
|
module Probes
|
@@ -29,7 +31,7 @@ module Sbmt
|
|
29
31
|
|
30
32
|
def start_webrick(app, middlewares:, port:)
|
31
33
|
Thread.new do
|
32
|
-
|
34
|
+
webrick.run(
|
33
35
|
::Rack::Builder.new do
|
34
36
|
middlewares.each do |middleware, options|
|
35
37
|
use middleware, **options
|
@@ -42,6 +44,12 @@ module Sbmt
|
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
47
|
+
def webrick
|
48
|
+
return ::Rack::Handler::WEBrick if Gem::Version.new(::Rack.release) < Gem::Version.new("3")
|
49
|
+
|
50
|
+
::Rackup::Handler::WEBrick
|
51
|
+
end
|
52
|
+
|
45
53
|
def autostart_yabeda_server?
|
46
54
|
Sbmt::Outbox.yaml_config.dig(:metrics, :enabled) || false
|
47
55
|
end
|
data/lib/sbmt/outbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sbmt-outbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sbermarket Ruby-Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -178,14 +178,14 @@ dependencies:
|
|
178
178
|
name: http_health_check
|
179
179
|
requirement: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
|
-
- - "
|
181
|
+
- - ">="
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0.5'
|
184
184
|
type: :runtime
|
185
185
|
prerelease: false
|
186
186
|
version_requirements: !ruby/object:Gem::Requirement
|
187
187
|
requirements:
|
188
|
-
- - "
|
188
|
+
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0.5'
|
191
191
|
- !ruby/object:Gem::Dependency
|
@@ -630,7 +630,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
630
630
|
- !ruby/object:Gem::Version
|
631
631
|
version: '0'
|
632
632
|
requirements: []
|
633
|
-
rubygems_version: 3.
|
633
|
+
rubygems_version: 3.3.7
|
634
634
|
signing_key:
|
635
635
|
specification_version: 4
|
636
636
|
summary: Outbox service
|