inst-jobs 0.15.14 → 0.15.15

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: e1539aeacf36fc9594f4d635b856a025d257d2fe68ab80e5540f25873eb75f6e
4
- data.tar.gz: c6c099a4ad547fa8172122add5d5f2a76f3c5e7d9cb8ac3e0dcb634c3eca94ec
3
+ metadata.gz: 94d2ec2d5e302eb8cbc3d272870ef40a2f14147d6878ef970127e9f42c17b570
4
+ data.tar.gz: d87ac1bc5635e3da1a9efb6bf4932e37d4e8e92158a5a916e2d58fd22fd582c8
5
5
  SHA512:
6
- metadata.gz: 5921c407cb901e3218c4bec406d59580fd3c98387b34ca20639e66fcd8905b3fe81dc85daf005daa0d50432e696d77ff6091dc4b6d3e92723c7da452e7819333
7
- data.tar.gz: 36472889bc5bc4b542158f6ac1956568cbe5a7dd0c6a312e52cf6121616b88be470ebb98445c41de48d0c317b6cc5c287110bbce062b44fedf9f6fa2c234ab7c
6
+ metadata.gz: 86542a0a982e14b85e4e32b84ca5eabec3a9fd8e6adf17952b62b5b000d2161b00b0200f67f58778f706a8d23c1421a86bf9d6dd28625fd0ee18bebbb7c2504e
7
+ data.tar.gz: f5100e242975fc36617730657a6aca51b8eb5d0b526d8478129b0e00736372cf22ffbf8865532ddf128f7ca56db4accd3c9344869de4fff440ccd3a65d4126be
@@ -1,3 +1,3 @@
1
1
  module Delayed
2
- VERSION = "0.15.14"
2
+ VERSION = "0.15.15"
3
3
  end
@@ -109,7 +109,7 @@ class Worker
109
109
  trap(sig) { @signal_queue << sig; wake_up }
110
110
  end
111
111
 
112
- health_check.start
112
+ raise 'Could not register health_check' unless health_check.start
113
113
 
114
114
  signal_processor = Thread.new do
115
115
  loop do
@@ -59,7 +59,7 @@ module Delayed
59
59
 
60
60
  def check_attributes
61
61
  {
62
- script: check_script,
62
+ args: ['bash', '-c', check_script],
63
63
  status: 'passing',
64
64
  interval: @config.fetch(:check_interval, '5m'),
65
65
  deregister_critical_service_after: @config.fetch(:deregister_service_delay, '10m'),
@@ -3,7 +3,13 @@ module Delayed
3
3
  class NullHealthCheck < HealthCheck
4
4
  self.type_name = :none
5
5
 
6
- attr_reader *%i{start stop}
6
+ def start
7
+ true
8
+ end
9
+
10
+ def stop
11
+ true
12
+ end
7
13
 
8
14
  def live_workers; []; end
9
15
  end
@@ -37,11 +37,11 @@ RSpec.describe Delayed::Worker::ConsulHealthCheck do
37
37
  end
38
38
 
39
39
 
40
- it 'must supply a script style check' do
40
+ it 'must supply a args style check' do
41
41
  allow(response).to receive(:ok?).and_return(true)
42
42
  allow(agent_client).to receive(:register_service) { |service|
43
43
  check = service.checks.first
44
- expect(check.script).to_not be_nil
44
+ expect(check.args).to_not be_nil
45
45
  response
46
46
  }
47
47
  health_check.start
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.14
4
+ version: 0.15.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-10-11 00:00:00.000000000 Z
12
+ date: 2020-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -163,14 +163,14 @@ dependencies:
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 0.2.3
166
+ version: 0.5.2
167
167
  type: :development
168
168
  prerelease: false
169
169
  version_requirements: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 0.2.3
173
+ version: 0.5.2
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: pg
176
176
  requirement: !ruby/object:Gem::Requirement