defunkt/resque — pull request #598 by billywatson (2012-05-18 17:27:33+00:00)
Title: Retry redis connection

In this pull request are a few things:

- Retrying to connect on initial connection failure.
- Retrying a command to redis on timeout and temporary failures. Redis handles all kinds of connection errors and re-establishes the connection, if necessary. However, if there is any other failure, redis passes that exception on. Now, resque will handle the temporary failures and retry the command up to 2 times.
- Delay between tries is set to 1 second, although I'm looking for suggestions on what this should be. I don't feel instant retries help any
- Number of tries is set to 3 (one try and 2 retries)