Ben Johnson
2006-Jul-31 20:23 UTC
[Backgroundrb-devel] Please help, if @jobs[key].respond_to? :thread is returning false
I noticed in the BackgroundRB class in the delete_worker method there is a line: if @jobs[key].respond_to? :thread For some reason this is returning false for me, it gets down to this line and returns false, not killing the thread. Any idea why this is returning false? Thanks for your help. Thank You, Ben Johnson E: bjohnson at contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/3537ad90/attachment.html
Ezra Zygmuntowicz
2006-Aug-01 00:04 UTC
[Backgroundrb-devel] Please help, if @jobs[key].respond_to? :thread is returning false
On Jul 31, 2006, at 1:23 PM, Ben Johnson wrote:> I noticed in the BackgroundRB class in the delete_worker method > there is a line: > > if @jobs[key].respond_to? :thread > > For some reason this is returning false for me, it gets down to > this line and returns false, not killing the thread. Any idea why > this is returning false? > > Thanks for your help. > > Thank You, > Ben Johnson > E: bjohnson at contuitive.comHey Ben- It is hard to say without seeing your worker class. But I will look into it and see what is happening. That would certainly explain why your delete_worker calls are not actually deleting workers. Its time for a bit of refactoring in the code base to go over all the thread handling and add some more corner test cases. Hopefully I will be able to do this this week and push a new release later this week. Cheers- -Ezra -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060731/cc8f6313/attachment.html