gnufied / backgroundrb

A Ruby/Rails job server and scheduler
http://backgroundrb.rubyforge.org
Other
214 stars 40 forks source link

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

Open donkalar opened 15 years ago

donkalar commented 15 years ago

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

donkalar commented 15 years ago

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 commented 13 years ago

Any updates on this issue?