lardawge/carrierwave_backgrounder — pull request #201 by gspiers (2014-12-10 11:45:44+00:00)
Title: Ensure the background processing job doesn't fail if the file has been removed.

In our system we allow the user to remove an image even while it's processing in the background. We have a placeholder image that gets replace as soon as it's been processed. When it comes time for the delayed job to run to process the images the file to process may not exist.

I added some additional checks that skips processing in the case where the file is missing. Exactly the same as when the record can't be found. So in this case the job will exit successfully and be removed from the queue rather than raising an error and staying around as a failed job.

Thank you for this gem, it's working well for us.

If there's anything you'd like cleaned up in this pull request just let me know.