Skip to content

Commit

Permalink
add sidekiq_alive and bash bin file (#10527)
Browse files Browse the repository at this point in the history
  • Loading branch information
LindseySaari authored Aug 23, 2022
1 parent 06bc26f commit 94105ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ gem 'rubyzip'
gem 'savon'
gem 'sentry-raven'
gem 'shrine'
gem 'sidekiq_alive'
gem 'sidekiq-scheduler'
gem 'slack-notify'
gem 'staccato'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,9 @@ GEM
rufus-scheduler (~> 3.2)
sidekiq (>= 4)
tilt (>= 1.4.0)
sidekiq_alive (2.1.5)
sidekiq
webrick
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
Expand Down Expand Up @@ -1155,6 +1158,7 @@ DEPENDENCIES
sidekiq-ent!
sidekiq-pro!
sidekiq-scheduler
sidekiq_alive
simplecov
slack-notify
spring
Expand Down
6 changes: 6 additions & 0 deletions bin/sidekiq_quiet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Find Pid
SIDEKIQ_PID=$(ps aux | grep sidekiq | grep busy | awk '{ print $2 }')
# Send TSTP signal
kill -SIGTSTP $SIDEKIQ_PID

0 comments on commit 94105ea

Please sign in to comment.