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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 562294aa960a1c1cd11b0a020b0f7cce26f09ee4c2faeb7044e21fd9bf3be8c5
4
- data.tar.gz: c31918f4c756cc551a3dcab2ea0d2c781c394e23e463c0a2c72ae68bfb52cd16
3
+ metadata.gz: 63e0e0239c3b38ded118c8bd79cfda8e45417b7be5aa4c3b19243bfc8490ddc3
4
+ data.tar.gz: e263a81dd897da3db9f5a84a79cab8353027e689da700b8871c1226ee68d8da5
5
5
  SHA512:
6
- metadata.gz: 595baafc8b0499bb8f900cdaf3eac250d623ba3b51d65b4510d311b2913b1e0560fc967c63dbeaf9145cab43527a5d133b7af6127492103e0caf8538b61ed55e
7
- data.tar.gz: 05deade6b05eb839fb0c6d1c0d08768b2141cc24c61cdd2edc1aa453338b12bc7b5bce3a8d19692968a7f85939541519fb6c70eb759273c1b2fe5afffce8b413
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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqAlive
4
- VERSION = "2.3.0"
4
+ VERSION = "2.3.1"
5
5
  end
data/lib/sidekiq_alive.rb CHANGED
@@ -20,7 +20,7 @@ module SidekiqAlive
20
20
 
21
21
  if Helpers.sidekiq_7
22
22
  sq_config.capsule(CAPSULE_NAME) do |cap|
23
- cap.concurrency = 2
23
+ cap.concurrency = config.concurrency
24
24
  cap.queues = [current_queue]
25
25
  end
26
26
  else
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.0
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-09-07 00:00:00.000000000 Z
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.0/README.md
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: []