neetodeploy-autoscale 0.9.0 → 1.0.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: 5913f148d9a61709274f497c7af3fc51155bbf5bee2e3d7a875e26176b1210bb
4
- data.tar.gz: 43abafd353ded35fcd89ba38c29cd3b892ac240470577b088b7d4210dc673eef
3
+ metadata.gz: fa4cf85ae08e12524d016fa1358469c9649f69d2327e7029467a8c8312551f64
4
+ data.tar.gz: 7ce0b84a66c401ff21e9716fcec7c7717dd60914fbe9a02268b18e902a0c3af1
5
5
  SHA512:
6
- metadata.gz: 6955cc1a81aff7b522e0c59362e6dc286f8b3a3d0fe77d836d4f4d479715fd6b8eef8356ae459610922182f4f6d4ec107c96c190fd18e62903b625a225e3917b
7
- data.tar.gz: 0b85b705c7d514f7cb1775c8f3aadb9f4a43031fc2804cf4af88c50007f313a218a120722db59ac1275b81cb6e154ff10b697fb25e8626c02f6f25f08d0ee525
6
+ metadata.gz: 477d64462dd7aa7efa87abc2ae6e1515ff6980d301383b96b0f0a7e22ba0614c0d631579b43f253661bfc4031e3bd97864cc205759db97cb3092aa7a85d49caf
7
+ data.tar.gz: 9c2a23ee9edec05a3487ca3b1103088496af247491f034ebc3c32176baec0804d0462fea1e6bb74c760a947d3c20a27c06660278fd76140422356f47cd0cf43c
@@ -19,8 +19,12 @@ module Neetodeploy
19
19
  post = Net::HTTP::Post.new(url)
20
20
  post["AuthToken"] = "K0An3O3MSyEEMTCnRd1IHgGjdGQkzy"
21
21
 
22
- Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
23
- http.request(post)
22
+ begin
23
+ Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
24
+ http.request(post)
25
+ end
26
+ rescue => e
27
+ puts "Exception in sending post request to exporter from Rails process: #{e.message}"
24
28
  end
25
29
 
26
30
  @app.call(env)
@@ -21,8 +21,13 @@ module Neetodeploy
21
21
  url.query = query_params
22
22
  post = Net::HTTP::Post.new(url)
23
23
  post["AuthToken"] = "K0An3O3MSyEEMTCnRd1IHgGjdGQkzy"
24
- Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
25
- http.request(post)
24
+
25
+ begin
26
+ Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
27
+ http.request(post)
28
+ end
29
+ rescue => e
30
+ puts "Exception in sending post request to exporter from Sidekiq process: #{e.message}"
26
31
  end
27
32
  end
28
33
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neetodeploy
4
4
  module Autoscale
5
- VERSION = "0.9.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetodeploy-autoscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sreeram Venkitesh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: For automatically scaling your Rails application based on network metrics
14
14
  email: