sidekiq-job_alert 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +51 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/sidekiq_job_alert +5 -0
- data/lib/sidekiq/job_alert.rb +10 -0
- data/lib/sidekiq/job_alert/cli.rb +14 -0
- data/lib/sidekiq/job_alert/notifier.rb +59 -0
- data/lib/sidekiq/job_alert/queue.rb +25 -0
- data/lib/sidekiq/job_alert/version.rb +5 -0
- data/sidekiq-job_alert.gemspec +32 -0
- data/sidekiq_job_alert.yml +18 -0
- metadata +148 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b008677b7de2fe56a8471741f5d56216eb704361
|
4
|
+
data.tar.gz: b8f7854c0fa2bedcc30ffb20d5b93083651cad3f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4342e1c0a67c41764ae1f254d41350a0852c9d4dca82e8eafb50142ba2179157eddbd4a7c56f0514cc5ba486956ecb914c8edc90a9548a951d2166ecc424eea0
|
7
|
+
data.tar.gz: 3b9ca6f183b6498748b6947e864a49d51d4e5477bef37dffbe5d87350e65d0ae466a02e3382c0171251f46a5d8a7c96553a291416df9cc628275d966a3cf83c9
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at cst.feng@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sidekiq-job_alert (0.1.0)
|
5
|
+
sidekiq (~> 4.2.1)
|
6
|
+
slack-notifier (~> 2.3.2)
|
7
|
+
thor
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
concurrent-ruby (1.1.5)
|
13
|
+
connection_pool (2.2.2)
|
14
|
+
diff-lcs (1.3)
|
15
|
+
rack (2.0.7)
|
16
|
+
rack-protection (2.0.7)
|
17
|
+
rack
|
18
|
+
rake (10.4.2)
|
19
|
+
redis (3.3.5)
|
20
|
+
rspec (3.6.0)
|
21
|
+
rspec-core (~> 3.6.0)
|
22
|
+
rspec-expectations (~> 3.6.0)
|
23
|
+
rspec-mocks (~> 3.6.0)
|
24
|
+
rspec-core (3.6.0)
|
25
|
+
rspec-support (~> 3.6.0)
|
26
|
+
rspec-expectations (3.6.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.6.0)
|
29
|
+
rspec-mocks (3.6.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.6.0)
|
32
|
+
rspec-support (3.6.0)
|
33
|
+
sidekiq (4.2.10)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
connection_pool (~> 2.2, >= 2.2.0)
|
36
|
+
rack-protection (>= 1.5.0)
|
37
|
+
redis (~> 3.2, >= 3.2.1)
|
38
|
+
slack-notifier (2.3.2)
|
39
|
+
thor (0.20.3)
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
bundler (~> 1.16)
|
46
|
+
rake (~> 10.0)
|
47
|
+
rspec (~> 3.0)
|
48
|
+
sidekiq-job_alert!
|
49
|
+
|
50
|
+
BUNDLED WITH
|
51
|
+
1.16.5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 feng.zhang
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Sidekiq::JobAlert
|
2
|
+
|
3
|
+
Sidekiq-job_alert is a gem to send alert to slack to warn you when there are too many waiting jobs or dead jobs
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'sidekiq-job_alert'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install sidekiq-job_alert
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
1. copy `sidekiq_job_alert.yml` to your local and config it
|
23
|
+
|
24
|
+
```yaml
|
25
|
+
:webhook_url: "YOUR SLACK INCOMING WEBHOOK"
|
26
|
+
:username: "Sidekiq_JobAlert"
|
27
|
+
:channel: "YOUR CHANNEL"
|
28
|
+
:link_names: 'false'
|
29
|
+
:sidekiq_url: "http://localhost:3000/sidekiq/" # Replace with your sidekiq url
|
30
|
+
:alert_dead_jobs:
|
31
|
+
:message: "%<job_counter>d dead jobs.\n"
|
32
|
+
:alert_total_waiting_jobs:
|
33
|
+
:message: "Totally %<job_counter>d waiting jobs.\n"
|
34
|
+
:all:
|
35
|
+
:limit: 0 # Only send alert when total waiting jobs over limit
|
36
|
+
:alert_each_waiting_job:
|
37
|
+
:message: "%<job_counter>d waiting jobs in %<queue_name>s.\n"
|
38
|
+
:queue_1:
|
39
|
+
:limit: 0 # Only send alert when queue_1's jobs over limit
|
40
|
+
:queue_2:
|
41
|
+
:limit: 0 # Only send alert when queue_2's jobs over limit
|
42
|
+
```
|
43
|
+
|
44
|
+
2. run
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
bundle exec sidekiq_job_alert alert --config ./sidekiq_job_alert.yml
|
48
|
+
```
|
49
|
+
|
50
|
+
## Development
|
51
|
+
|
52
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
53
|
+
|
54
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
55
|
+
|
56
|
+
## Contributing
|
57
|
+
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sidekiq-job_alert. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
59
|
+
|
60
|
+
## License
|
61
|
+
|
62
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
63
|
+
|
64
|
+
## Code of Conduct
|
65
|
+
|
66
|
+
Everyone interacting in the Sidekiq::JobAlert project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/sidekiq-job_alert/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "sidekiq/job_alert"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'sidekiq/job_alert'
|
3
|
+
|
4
|
+
module Sidekiq
|
5
|
+
module JobAlert
|
6
|
+
class CLI < Thor
|
7
|
+
desc "alert config", "Send sidekiq queue alert to slack"
|
8
|
+
option :config
|
9
|
+
def alert
|
10
|
+
Sidekiq::JobAlert::Notifier.new(options[:config]).call
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'slack-notifier'
|
4
|
+
require 'sidekiq/job_alert/queue'
|
5
|
+
|
6
|
+
module Sidekiq
|
7
|
+
module JobAlert
|
8
|
+
class Notifier
|
9
|
+
def initialize(config)
|
10
|
+
@slack_config ||= YAML::load_file(config)
|
11
|
+
@message = ''
|
12
|
+
end
|
13
|
+
|
14
|
+
def call
|
15
|
+
@message += make_dead_job_message
|
16
|
+
@message += make_job_message('alert_total_waiting_jobs', 'all')
|
17
|
+
keys = @slack_config[:alert_each_waiting_job].keys
|
18
|
+
keys.delete(:message)
|
19
|
+
keys.each do |key|
|
20
|
+
@message += make_job_message('alert_each_waiting_job', key)
|
21
|
+
end
|
22
|
+
|
23
|
+
return if @message.empty?
|
24
|
+
|
25
|
+
@message += @slack_config[:sidekiq_url]
|
26
|
+
slack_notifier.ping(@message)
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def make_dead_job_message
|
32
|
+
cnt = Sidekiq::JobAlert::Queue.dead_job_cnt
|
33
|
+
cnt.positive? ? make_message('alert_dead_jobs', cnt) : ''
|
34
|
+
end
|
35
|
+
|
36
|
+
def make_job_message(type, queue_name)
|
37
|
+
cnt = Sidekiq::JobAlert::Queue.queue_job_cnt(queue_name)
|
38
|
+
limit = @slack_config[type.to_sym][queue_name.to_sym][:limit].to_i
|
39
|
+
cnt > limit ? make_message(type, cnt, queue_name.to_s) : ''
|
40
|
+
end
|
41
|
+
|
42
|
+
def make_message(type, job_counter, queue_name = nil)
|
43
|
+
format(
|
44
|
+
@slack_config[type.to_sym][:message],
|
45
|
+
job_counter: job_counter,
|
46
|
+
queue_name: queue_name
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
def slack_notifier
|
51
|
+
Slack::Notifier.new(
|
52
|
+
@slack_config[:webhook_url],
|
53
|
+
username: @slack_config[:username],
|
54
|
+
channel: @slack_config[:channel]
|
55
|
+
)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'sidekiq/api'
|
4
|
+
|
5
|
+
module Sidekiq
|
6
|
+
module JobAlert
|
7
|
+
class Queue
|
8
|
+
class << self
|
9
|
+
def all_job_cnt
|
10
|
+
return 0 if Sidekiq::Queue.all == []
|
11
|
+
|
12
|
+
Sidekiq::Queue.all.sum(&:size)
|
13
|
+
end
|
14
|
+
|
15
|
+
def dead_job_cnt
|
16
|
+
Sidekiq::DeadSet.new.size
|
17
|
+
end
|
18
|
+
|
19
|
+
def queue_job_cnt(queue_name)
|
20
|
+
Sidekiq::Queue.new(queue_name).size
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "sidekiq/job_alert/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sidekiq-job_alert"
|
8
|
+
spec.version = Sidekiq::JobAlert::VERSION
|
9
|
+
spec.authors = ["feng.zhang"]
|
10
|
+
spec.email = ["cst.feng@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Send alert to Slack if too many waiting jobs or dead jobs}
|
13
|
+
spec.description = %q{Send alert to Slack if too many waiting jobs or dead jobs}
|
14
|
+
spec.homepage = "https://github.com/arthurbryant/sidekiq-job_alert"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_dependency "sidekiq", "~> 4.2.1"
|
30
|
+
spec.add_dependency "slack-notifier", "~> 2.3.2"
|
31
|
+
spec.add_dependency "thor"
|
32
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
:webhook_url: "YOUR SLACK INCOMING WEBHOOK"
|
2
|
+
:username: "Sidekiq_JobAlert"
|
3
|
+
:channel: "YOUR CHANNEL"
|
4
|
+
:link_names: 'false'
|
5
|
+
:sidekiq_url: "http://localhost:3000/sidekiq/" # Replace with your sidekiq url
|
6
|
+
:alert_dead_jobs:
|
7
|
+
:message: "%<job_counter>d dead jobs.\n"
|
8
|
+
:alert_total_waiting_jobs:
|
9
|
+
:message: "Totally %<job_counter>d waiting jobs.\n"
|
10
|
+
:all:
|
11
|
+
:limit: 0 # Only send alert when total waiting jobs over limit
|
12
|
+
:alert_each_waiting_job:
|
13
|
+
:message: "%<job_counter>d waiting jobs in %<queue_name>s.\n"
|
14
|
+
:queue_1:
|
15
|
+
:limit: 0 # Only send alert when queue_1's jobs over limit
|
16
|
+
:queue_2:
|
17
|
+
:limit: 0 # Only send alert when queue_2's jobs over limit
|
18
|
+
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sidekiq-job_alert
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- feng.zhang
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sidekiq
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.2.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.2.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: slack-notifier
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.3.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.3.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Send alert to Slack if too many waiting jobs or dead jobs
|
98
|
+
email:
|
99
|
+
- cst.feng@gmail.com
|
100
|
+
executables:
|
101
|
+
- sidekiq_job_alert
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".travis.yml"
|
108
|
+
- CODE_OF_CONDUCT.md
|
109
|
+
- Gemfile
|
110
|
+
- Gemfile.lock
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- exe/sidekiq_job_alert
|
117
|
+
- lib/sidekiq/job_alert.rb
|
118
|
+
- lib/sidekiq/job_alert/cli.rb
|
119
|
+
- lib/sidekiq/job_alert/notifier.rb
|
120
|
+
- lib/sidekiq/job_alert/queue.rb
|
121
|
+
- lib/sidekiq/job_alert/version.rb
|
122
|
+
- sidekiq-job_alert.gemspec
|
123
|
+
- sidekiq_job_alert.yml
|
124
|
+
homepage: https://github.com/arthurbryant/sidekiq-job_alert
|
125
|
+
licenses:
|
126
|
+
- MIT
|
127
|
+
metadata: {}
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.5.2
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Send alert to Slack if too many waiting jobs or dead jobs
|
148
|
+
test_files: []
|