Skip to content

Commit

Permalink
Add dump_threads API, fixes #2247
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 22, 2015
1 parent c7b9f08 commit cfcb728
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
HEAD
-----------

- Add Sidekiq::Process#dump\_threads API to trigger TTIN output [#2247]

3.3.3
-----------

Expand Down
4 changes: 4 additions & 0 deletions lib/sidekiq/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,10 @@ def stop!
signal('TERM')
end

def dump_threads
signal('TTIN')
end

private

def signal(sig)
Expand Down

0 comments on commit cfcb728

Please sign in to comment.