search for: resize_work

Displaying 1 result from an estimated 1 matches for "resize_work".

Did you mean: resize_lock
2006 Aug 07
4
Memory leak?
...ick image read. I have it working like this. First of all, I changed the start script to include environment.rb and therefore the ENTIRE Rails environment, because my Image model is an engine plugin. Then, I have it perform this upon acceptance: MiddleMan.new_worker :class => :resize_worker, :args => self.id And here are the contents of ResizeWorker: class ResizeWorker < BackgrounDRb::Rails def do_work(args) image = Image.find(args) image.resize_all terminate end end If I run this on a few dozen images simultaneously I watch as top starts slowly requi...