forked from arturictus/sidekiq_alive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidekiq_alive.gemspec
56 lines (42 loc) · 2.1 KB
/
sidekiq_alive.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "sidekiq_alive/version"
Gem::Specification.new do |spec|
spec.name = "sidekiq_alive"
spec.authors = ["Andrejs Cunskis", "Artur Pañach"]
spec.email = ["[email protected]", "[email protected]"]
spec.version = SidekiqAlive::VERSION
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
spec.homepage = "https://github.com/arturictus/sidekiq_alive"
spec.summary = "Liveness probe for sidekiq on Kubernetes deployments."
spec.license = "MIT"
spec.description = <<~DSC
SidekiqAlive offers a solution to add liveness probe of a Sidekiq instance.
How?
A http server is started and on each requests validates that a liveness key is stored in Redis. If it is there means is working.
A Sidekiq job is the responsable to storing this key. If Sidekiq stops processing jobs
this key gets expired by Redis an consequently the http server will return a 500 error.
This Job is responsible to requeue itself for the next liveness probe.
DSC
spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{spec.homepage}/releases",
"documentation_uri" => "#{spec.homepage}/blob/v#{spec.version}/README.md",
"bug_tracker_uri" => "#{spec.homepage}/issues",
}
spec.files = Dir["README.md", "lib/**/*"]
spec.require_paths = ["lib"]
spec.add_development_dependency("bundler", "> 1.16")
spec.add_development_dependency("debug", "~> 1.6")
spec.add_development_dependency("rack-test", "~> 2.1.0")
spec.add_development_dependency("rake", "~> 13.0")
spec.add_development_dependency("rspec", "~> 3.0")
spec.add_development_dependency("rspec-sidekiq", "~> 3.0")
spec.add_development_dependency("rubocop-shopify", "~> 2.10")
spec.add_development_dependency("solargraph", "~> 0.49.0")
spec.add_dependency("rack", "< 3")
spec.add_dependency("sidekiq", ">= 5", "< 8")
spec.add_dependency("webrick", ">= 1", "< 2")
end