sidekiq_alive 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/sidekiq_alive/config.rb +3 -1
- data/lib/sidekiq_alive/version.rb +1 -1
- data/lib/sidekiq_alive.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e0e0239c3b38ded118c8bd79cfda8e45417b7be5aa4c3b19243bfc8490ddc3
|
4
|
+
data.tar.gz: e263a81dd897da3db9f5a84a79cab8353027e689da700b8871c1226ee68d8da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88782bc7948ceeadc8ee7b2cb8c06cc9c5021da5891e4f333d620c5769a87c120d140cb1374c8886f3881b2c9019ff1855eb4710a838b085adbcc9f8681e3673
|
7
|
+
data.tar.gz: ce6c00b601cc2304568857c7d252a6a7b19693d7e71e6ad7c39f1381b99f8e010cbba91a1195bf073b1381ce0fc3d13cb6c1a736a21e8295fb2291fd485060fb
|
data/README.md
CHANGED
@@ -268,6 +268,14 @@ SidekiqAlive.setup do |config|
|
|
268
268
|
# default: 'webrick'
|
269
269
|
#
|
270
270
|
# config.server = 'puma'
|
271
|
+
|
272
|
+
# ==> Concurrency
|
273
|
+
# The maximum number of Redis connections requested for the SidekiqAlive pool.
|
274
|
+
# Can also be set with the environment variable SIDEKIQ_ALIVE_CONCURRENCY.
|
275
|
+
# NOTE: only effects Sidekiq 7 or greater.
|
276
|
+
# default: 2
|
277
|
+
#
|
278
|
+
# config.concurrency = 3
|
271
279
|
end
|
272
280
|
```
|
273
281
|
|
data/lib/sidekiq_alive/config.rb
CHANGED
@@ -15,7 +15,8 @@ module SidekiqAlive
|
|
15
15
|
:server,
|
16
16
|
:custom_liveness_probe,
|
17
17
|
:logger,
|
18
|
-
:shutdown_callback
|
18
|
+
:shutdown_callback,
|
19
|
+
:concurrency
|
19
20
|
|
20
21
|
def initialize
|
21
22
|
set_defaults
|
@@ -33,6 +34,7 @@ module SidekiqAlive
|
|
33
34
|
@server = ENV.fetch("SIDEKIQ_ALIVE_SERVER", "webrick")
|
34
35
|
@custom_liveness_probe = proc { true }
|
35
36
|
@shutdown_callback = proc {}
|
37
|
+
@concurrency = Integer(ENV.fetch("SIDEKIQ_ALIVE_CONCURRENCY", 2), exception: false) || 2
|
36
38
|
end
|
37
39
|
|
38
40
|
def registration_ttl
|
data/lib/sidekiq_alive.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_alive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -213,7 +213,7 @@ metadata:
|
|
213
213
|
homepage_uri: https://github.com/arturictus/sidekiq_alive
|
214
214
|
source_code_uri: https://github.com/arturictus/sidekiq_alive
|
215
215
|
changelog_uri: https://github.com/arturictus/sidekiq_alive/releases
|
216
|
-
documentation_uri: https://github.com/arturictus/sidekiq_alive/blob/v2.3.
|
216
|
+
documentation_uri: https://github.com/arturictus/sidekiq_alive/blob/v2.3.1/README.md
|
217
217
|
bug_tracker_uri: https://github.com/arturictus/sidekiq_alive/issues
|
218
218
|
post_install_message:
|
219
219
|
rdoc_options: []
|