mperham/sidekiq — pull request #399 by kurtisnelson (2012-09-14 20:02:44+00:00)
Title: New PermanentError does not get retried

Sometime a worker might encounter a condition where it is always going to fail because it received bad parameters or similar in the first place.
For example, when interacting with an external API, a token might be invalid. Generally, the developer still wants an exception to be logged versus a silent failure via a return so now they can raise PermanentError when they encounter OAuth::Unauthorized or similar.
This fixes two problems:
1. A waste of limited API calls
2. My airbrake etc from getting filled with repetitive errors that are not going to fix themselves.