File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ Version 1.0.0rc1
2+ - Removed json gem and relying on ruby 1.9.2's stdlib
3+ - Added better documentation
4+
15Version 0.3.6pre
26- Added listen/notify support configured by $QC_LISTENING_WORKER otherwise uses Kernel.sleep()
37
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def drain_notify
5050
5151 def wait_for_notify ( t )
5252 log ( "waiting for notify timeout=#{ t } " )
53- connection . wait_for_notify ( t )
53+ connection . wait_for_notify ( t ) { | event , pid , msg | log ( "received notification #{ event } " ) }
5454 log ( "done waiting for notify" )
5555 end
5656
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def wait(t)
113113 if can_listen?
114114 log ( "worker waiting on LISTEN" )
115115 @queue . database . listen
116- @queue . database . wait_for_notify ( t ) { log ( "message received" ) }
116+ @queue . database . wait_for_notify ( t )
117117 @queue . database . unlisten
118118 @queue . database . drain_notify
119119 log ( "worker finished LISTEN" )
You can’t perform that action at this time.
0 commit comments