-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidekiq-max-jobs.gemspec
36 lines (31 loc) · 1.42 KB
/
sidekiq-max-jobs.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
# frozen_string_literal: true
LIB_DIR = File.expand_path(__dir__, 'lib')
$LOAD_PATH.unshift(LIB_DIR) unless $LOAD_PATH.include?(LIB_DIR)
Gem::Specification.new do |s|
s.name = 'sidekiq-max-jobs'
s.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
s.date = Time.now.strftime('%Y-%m-%d')
s.authors = ['Jonathan W. Zaleski']
s.email = ['[email protected]']
s.summary = <<~SUMMARY
A simple plugin used to control the maximum number of jobs, or maximum
runtime, for a Sidekiq worker before terminating.
SUMMARY
s.description = <<~DESCRIPTION
This gem provides the ability to configure the maximum number of jobs a
Sidekiq worker will process before terminating. For an environment running
Kubernetes this is a perfect addition because once the affected pod dies it
will automatically be restarted [gracefully] resetting memory,
database-connections, etc. with minimal interruption to throughput
DESCRIPTION
s.homepage = 'http://github.com/jzaleski/sidekiq-max-jobs'
s.license = 'MIT'
s.files = `git ls-files`.split($/)
s.require_paths = %w[lib]
s.add_dependency('sidekiq', '>= 4.0.0', '< 7.0.0')
s.add_development_dependency('pry', '~> 0.13.0')
s.add_development_dependency('rake', '~> 13.0.0')
s.add_development_dependency('rspec', '~> 3.9.0')
s.add_development_dependency('rubocop', '~> 0.85.0')
s.add_development_dependency('rubocop-rspec', '~> 1.39.0')
end