Forum: Ruby on Rails Backgroundrb not detaching

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E29eac7a986dbe96d7542d4bf0630be1?d=identicon&s=25 Matt (Guest)
on 2007-07-13 13:06
(Received via mailing list)
I have a loop:"#{RAILS_ROOT}/public/images/vehicles/uploaded/
#{}").each do |image|
      if image =~ /.*\.jpg$/i
        @vehicle_image =
        @vehicle.vehicle_images << @vehicle_image
#{}/#{image}", "#{RAILS_ROOT}/public/images/vehicles/
        MiddleMan.new_worker(:class => :resizeimage_worker, :args =>
{:id =>, :basepath => "#{RAILS_ROOT}/public/images/

It appears to be waiting for MiddleMan.new_worker to return before
continuing to the next iteration.
Im sure I must be doing something wrong here - as this would defeat
the whole point of backgroundrb?

Any thoughts?

Kind Regards,

Matt Williams
4375b4aca04b8d72482fd409fb6d0b47?d=identicon&s=25 Roderick van Domburg (roderickvd)
on 2007-07-14 11:01
may be of help to you.

Roderick van Domburg
E29eac7a986dbe96d7542d4bf0630be1?d=identicon&s=25 Matt (Guest)
on 2007-07-15 21:39
(Received via mailing list)
Thank you kindly for the quick reply.

It turns out I spawning new workers for each image, each of which
consumed crazy amounts of resources and gave the illusion of blocking
as the system was running so slow
Efe398b3b5436b0a8d4430090e8f86ea?d=identicon&s=25 seth b. (subimage)
on 2007-07-16 05:33
(Received via mailing list)
heh........that would do it! :p

On 7/15/07, Matt <> wrote:
seth at subimage interactive
Cashboard - Estimates, invoices, and time tracking software - for free!
Substruct - Open source RoR e-commerce software.
This topic is locked and can not be replied to.