lib/hanami/events/cloud_pubsub/runner.rb
# Print out some useful debugging information
#
# Called on TTIN to inspect the state of the runner in a terminal friendly
# output. This provides a simple debugging if the runner gets stuck for
# some reason.
#
# See: https://github.com/mperham/sidekiq/blob/e447dae961ebc894f12848d9f33446a07ffc67dc/bin/sidekiqload#L74
Print out some useful debugging information
Called on TTIN to inspect the state of the runner in a terminal friendly
output. This provides a simple debugging if the runner gets stuck for
some reason.


Print out some useful debugging information Called on TTIN to inspect the state of the runner in a terminal friendly output . This provides a simple debugging if the runner gets stuck for some reason .
def debug_info
          <<~MSG
            ╔══════ BACKTRACES
            #{Thread.list.flat_map { |thr| ThreadInspector.new(thr).to_s }.join("\n")}
            ╠══════ LISTENERS
            #{adapter.listeners.map { |lis| "║ #{lis.format}" }.join("\n")}
            ║
            ╠══════ GENERAL
            ║ ready?: #{ready?}
            ║ healthy?: #{healthy?}
            ║ threads: #{Thread.list.count}
            ║ threads running: #{Thread.list.select { |thread| thread.status == 'run' }.count}
            ╚══════
          MSG
        end
def debug_info <<~MSG 
            ╔══════ BACKTRACES
             #{ Thread . list . flat_map { | thr | ThreadInspector . new ( thr ) . to_s } . join ( "\n" ) } 
            ╠══════ LISTENERS
             #{ adapter . listeners . map { | lis | "║ #{lis.format}" } j o in(" \ n")} 
            ║
            ╠══════ GENERAL
            ║ ready?: #{ re ady?} 
            ║ healthy?: #{ he althy?} 
            ║ threads: #{ Th read.l i st.c o unt} 
            ║ threads running: #{ Th read.l i st.s e lect { | h read|  t read.s t atus =  ' un' } c o unt} 
            ╚══════
           MSG end
Print out some useful debugging information
Called on TTIN to inspect the state of the runner in a terminal friendly
output.
Print out some useful debugging information Called on TTIN to inspect the state of the runner in a terminal friendly output .