katalyst-healthcheck 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/katalyst/healthcheck/actions/sidekiq.rb +0 -2
- data/lib/katalyst/healthcheck/store/redis.rb +1 -1
- data/lib/katalyst/healthcheck/task.rb +1 -1
- data/lib/katalyst/healthcheck/tasks/healthcheck_tasks.rake +5 -3
- data/lib/katalyst/healthcheck/version.rb +1 -1
- data/lib/katalyst/healthcheck.rb +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 788fad7a24bbc816550cda57dd008b3b9a077c3523ce671fc79692cbaa974dd0
|
4
|
+
data.tar.gz: e7314c3825cc5322f6e625b5088a27bcc5c7172e8ebfd2b6feb915e73098b8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf76458c6e879b0b14afed2422c2648ee95f5a41890afb5700be30b4c489cd117266fbf97e98cb8094141a63378e83894f1978f99d68afcc364ebace2dc8cf1e
|
7
|
+
data.tar.gz: 1fbed8908808cc6bd61f34889a633d2097ccfe7160a23d81ffa4530430966654e3911fa2d10beb8b9715b93bbcbd5fcab79487b980c87b8a5344693166d1c96c
|
@@ -18,8 +18,10 @@ namespace :katalyst_healthcheck do
|
|
18
18
|
puts "cleared task status for task: #{task_name}"
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
if defined?(Sidekiq)
|
22
|
+
desc "Call the sidekiq health check action to check that sidekiq is able to process background tasks"
|
23
|
+
task sidekiq: :environment do
|
24
|
+
Katalyst::Healthcheck::Actions::Sidekiq.call
|
25
|
+
end
|
24
26
|
end
|
25
27
|
end
|
data/lib/katalyst/healthcheck.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "active_support/all"
|
3
4
|
require "redlock"
|
4
5
|
|
5
6
|
require "katalyst/healthcheck/version"
|
@@ -11,7 +12,7 @@ require "katalyst/healthcheck/store/redis"
|
|
11
12
|
require "katalyst/healthcheck/task"
|
12
13
|
require "katalyst/healthcheck/monitored"
|
13
14
|
require "katalyst/healthcheck/route"
|
14
|
-
require "katalyst/healthcheck/actions/sidekiq"
|
15
|
+
require "katalyst/healthcheck/actions/sidekiq" if defined?(Sidekiq)
|
15
16
|
|
16
17
|
module Katalyst
|
17
18
|
module Healthcheck
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katalyst-healthcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: redis
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: '0'
|
86
100
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
101
|
+
rubygems_version: 3.1.6
|
88
102
|
signing_key:
|
89
103
|
specification_version: 4
|
90
104
|
summary: Health check routes and functions
|