{"issue":{"created_at":"2011-12-04T19:47:42Z","state":"closed","updated_at":"2011-12-04T22:09:15Z","comments":3,"user":{"gravatar_id":"64417167ba0995031dff46dd4e6aafa1","id":302063,"url":"https://api.github.com/users/davebenvenuti","login":"davebenvenuti","avatar_url":"https://secure.gravatar.com/avatar/64417167ba0995031dff46dd4e6aafa1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Third attempt.  Allows the user to define retry delays for specific exception types when using the @retry_exceptions parameter.  Rather than defining @retry_exceptions as an array, the user can define it as a hash where the keys are exception classes, and the values are retry delays in seconds.\r\n\r\nclass MyJob\r\nextend Resque::Plugins::Retry\r\n\r\n@retry_limit = 1\r\n@retry_exceptions = { Timeout::Error => 60, Net::IMAP::NoResponseError => 30}\r\n\r\n...\r\nend\r\n\r\nreference: \r\n\r\nhttps://gist.github.com/1411546\r\nhttps://github.com/lantins/resque-retry/pull/32\r\n","assignee":null,"id":2443355,"pull_request":{"patch_url":"https://github.com/lantins/resque-retry/pull/34.patch","html_url":"https://github.com/lantins/resque-retry/pull/34","diff_url":"https://github.com/lantins/resque-retry/pull/34.diff"},"labels":[],"number":34,"title":"Per exception retry parameters","closed_at":"2011-12-04T21:05:22Z","html_url":"https://github.com/lantins/resque-retry/issues/34","url":"https://api.github.com/repos/lantins/resque-retry/issues/34","milestone":null},"action":"created","comment":{"created_at":"2011-12-04T22:09:15Z","updated_at":"2011-12-04T22:09:15Z","user":{"gravatar_id":"e512eea7419e483dcabe608eb75699ad","id":22917,"url":"https://api.github.com/users/lantins","login":"lantins","avatar_url":"https://secure.gravatar.com/avatar/e512eea7419e483dcabe608eb75699ad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Aha! I was looking at the test, then the code and thinking \"I can't see it\".\r\nThanks for clarifying, I'll roll a new gem tonight.\r\n\r\nThanks for the brill pull request =)","id":3009312,"url":"https://api.github.com/repos/lantins/resque-retry/issues/comments/3009312"}}