diff --git a/Changes.md b/Changes.md index 578cb74c..292f56f1 100644 --- a/Changes.md +++ b/Changes.md @@ -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 ----------- diff --git a/lib/sidekiq/cli.rb b/lib/sidekiq/cli.rb index 85143e12..b0cc13c4 100644 --- a/lib/sidekiq/cli.rb +++ b/lib/sidekiq/cli.rb @@ -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'