"Exit" throws an error when called within worker #4

Open
donkalar opened this Issue May 26, 2009 · 2 comments

Comments

Projects
None yet
2 participants
@donkalar

Calls to exit() seem to be broken in the master branch, which results in zombie workers until backgroundrb is cycled.

@donkalar

This comment has been minimized.

Show comment
Hide comment
@donkalar

donkalar May 26, 2009

I added a backtrace print to the error handler, and the call stack is as follows:

/Users/don/Code/Rails/pubbrain/lib/workers/run_search_worker.rb:117:in 'exit'
/Users/don/Code/Rails/pubbrain/lib/workers/run_search_worker.rb:117:in 'create'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:320:in 'send'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:320:in 'invoke_user_method'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:127:in 'worker_init'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/../lib/packet/packet_worker.rb:19:in 'start_worker'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:33:in 'load_worker'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:26:in 'initialize'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:47:in 'new'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:47
/usr/bin/packet_worker_runner:19:in 'load'
/usr/bin/packet_worker_runner:19

I added a backtrace print to the error handler, and the call stack is as follows:

/Users/don/Code/Rails/pubbrain/lib/workers/run_search_worker.rb:117:in 'exit'
/Users/don/Code/Rails/pubbrain/lib/workers/run_search_worker.rb:117:in 'create'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:320:in 'send'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:320:in 'invoke_user_method'
/Users/don/Code/Rails/pubbrain/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:127:in 'worker_init'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/../lib/packet/packet_worker.rb:19:in 'start_worker'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:33:in 'load_worker'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:26:in 'initialize'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:47:in 'new'
/Library/Ruby/Gems/1.8/gems/packet-0.1.15/bin/packet_worker_runner:47
/usr/bin/packet_worker_runner:19:in 'load'
/usr/bin/packet_worker_runner:19

@fonsecajavier

This comment has been minimized.

Show comment
Hide comment
@fonsecajavier

fonsecajavier Sep 23, 2011

Any updates on this issue?

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment