1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Print backtraces for all threads upon INFO signal, fixes #183

This commit is contained in:
Mike Perham 2012-05-11 21:23:24 -07:00
parent 10b4caf973
commit 1feebe7b51
2 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,8 @@
1.2.1
-----------
- Overhaul retries Web UI with new index page and bulk operations #184
- Print backtraces for all threads upon INFO signal [#183]
- Overhaul retries Web UI with new index page and bulk operations [#184]
1.2.0
-----------

View file

@ -15,6 +15,13 @@ trap 'USR1' do
mgr.stop! if mgr
end
trap 'INFO' do
Thread.list.each do |thread|
puts "Thread TID-#{thread.object_id.to_s(36)} #{thread['label']}"
puts thread.backtrace.join("\n")
end
end
require 'yaml'
require 'singleton'
require 'optparse'