sidekiq_autoscale 0.2.5 → 0.2.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35870ccd72ae7e188ecde7da83579cc245dcfaef933796e446c29796bb834a08
|
|
4
|
+
data.tar.gz: f1c34d154270893707aa7fc0b2888f8c89008733f9db5e6305a5611befd8dff7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3677436e3a7872319dca5d7549c0bf611b428fb8192f4e377e4983751ca2f9ff10196c9d5811efa66e9cba5589b92750d925776ad38f33f17c99cfb88d0f99ef
|
|
7
|
+
data.tar.gz: 9e059d8e41ee804561d24ac986ce535d228c36541514cd8ee6d57094cbb70dc308f593edcb2346084a04e5b92a036bf5a8f22a0e4f4199f09dbcbe547c245051
|
|
@@ -15,9 +15,12 @@ module SidekiqAutoscale
|
|
|
15
15
|
|
|
16
16
|
def worker_count
|
|
17
17
|
@resources.get(@deployment_name).spec.replicas
|
|
18
|
-
rescue
|
|
18
|
+
rescue K8s::Error, K8s::Error::Forbidden => e
|
|
19
19
|
SidekiqAutoscale.on_scaling_error(e)
|
|
20
20
|
0
|
|
21
|
+
rescue Excon::Errors::Error, Excon::Error::Socket => e
|
|
22
|
+
SidekiqAutoscale.logger.warn("[SIDEKIQ_SCALE][KUBERNETES_ACTION] Error connecting to Kubernetes: #{e}")
|
|
23
|
+
0
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
def worker_count=(val)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sidekiq_autoscale
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Allen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|