defunkt/resque-lock — pull request #10 by TwP (2012-11-06 19:55:18+00:00)
Title: Deadlock Prevention

The Resque UI provides a button for deleting an entire queue. If that button is pressed with jobs still in the queue, then the lock flags are orphaned in the Reids datastore. These lock flags prevent those jobs from being re-added to the queue.

This patch adds a timeout flag to the lock. After the timeout expires, the lock can be cleared and jobs re-added to the queue.