swipely/delayed_job_active_record — pull request #11 by mguymon (2014-07-08 21:40:41+00:00)
Title: Deadlocks qr8mb ehn

@kbarrette

Add retry to the `clear_lock!` instead of fail immediately. The attempt is hardcoded to 10 tries since that is what the `self.reserve` is set to.

Also fixes a bug where the retry count was 1 more than the max retry.