I’m making a site that does a lot of image processing. In order to
avoid timeouts while the clients image is being processed I have used
backgroundrb to process the images.
However, I have a few small issues:
Images tend to come in short, intense bursts. I want all the
images to be processed at the same time, but it seems like drb is
processing the images in sequence, with each image waiting for the
next to be processed before it starts processing. Is there any way to
make drb process them all concurrently?
Sometimes my worker just doesn’t start. I can’t find any errors
anywhere. But looking the log indicated that the worker never got the
message to start. I can’t see any correlation between image size, type
or anything. It seems pretty random but happens about once every 10
images. If it was a problem with my code I would expect to see an
error message somewhere, but I can’t find one. I am assuming that
something goes wrong, or gets lost, and that the error is never
Does anyone have any suggestions?