sidekiq_utils 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sidekiq_utils/latency_alert.rb +4 -2
- data/sidekiq_utils.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25e7a645fef4b5bfc9dd087e14785e939af10b17
|
4
|
+
data.tar.gz: ec028e2cde1ef2eb36345451b4366f79f96afe0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4820e308d2e810f52da0c6d91fa0a3289f016771f0414e0f2ca4a2552f1069bb5d3867568b615fb9c98def6d8190c940947e125e773931b9de124301f73dd7f
|
7
|
+
data.tar.gz: cf7aba28bfcf07849865492033aafc785972d67f0bbdc5dae7a47f2aac36ab0e8ffff75587b08eff9290003c392cf285a81fd20d6d719d9dc4c92961a79b3b4d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -8,9 +8,11 @@ module SidekiqUtils
|
|
8
8
|
def check!
|
9
9
|
alerts = {}
|
10
10
|
Sidekiq::Queue.all.each do |queue|
|
11
|
-
threshold = config['alert_thresholds'][queue.name]
|
11
|
+
threshold = config['alert_thresholds'][queue.name].
|
12
|
+
try!(&:to_i).try!(:minutes)
|
12
13
|
next if threshold == :disabled
|
13
|
-
threshold ||= config['alert_thresholds']['default']
|
14
|
+
threshold ||= config['alert_thresholds']['default'].
|
15
|
+
try!(&:to_i).try!(:minutes) || 10.minutes
|
14
16
|
if (latency = queue.latency) > threshold
|
15
17
|
alerts[queue.name] = latency
|
16
18
|
end
|
data/sidekiq_utils.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: sidekiq_utils 1.0.
|
5
|
+
# stub: sidekiq_utils 1.0.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "sidekiq_utils".freeze
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|