-
-
Save farski/19e5f58aeeb5f6359c8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):047:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 17:37:24 -0500 - [[39751, true], [32345, true], [28719, true], [45714, true], [33856, true], [22368, true], [37771, true], [4619, true]] | |
=> nil | |
irb(main):048:0> Que.execute('select pg_terminate_backend(22384)') | |
=> [{"pg_terminate_backend"=>true}] | |
irb(main):049:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 18:18:43 -0500 - [[5622, true], [34472, true], [28719, true], [45714, true], [33856, true], [3002, true], [37771, true], [4619, true]] | |
=> nil | |
irb(main):050:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 18:19:29 -0500 - [[3742, true], [3760, true], [28719, true], [45714, true], [33856, true], [3002, true], [37771, true], [4619, true]] | |
=> nil | |
irb(main):051:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 18:25:42 -0500 - [[37623, true], [36101, true], [28719, true], [45714, true], [33856, true], [3002, true], [37771, true], [4619, true]] | |
=> nil | |
irb(main):052:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 18:47:00 -0500 - [[5196, true], [4604, true], [4519, true], [45714, true], [33856, true], [3002, true], [37771, true], [4619, true]] | |
=> nil | |
irb(main):053:0> puts "#{Time.now} - #{Que.worker_states.map{|s|s['args']}}" | |
2014-02-02 18:53:54 -0500 - [[5196, true], [4604, true], [30552, true], [45714, true], [33856, true], [3002, true], [37771, true], [4619, true]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment