LearnBoost/kue — pull request #126 by mathrawka (2012-08-19 12:20:09+00:00)
Title: Delay a failed job that was delayed

I'm putting this here to start a discussion on how it should best be implemented.

One of the problems with `.attempts()` is that it just runs through all the attempts as fast as possible. If the worker is making a request to a remote API, and the API is down, it will go through many attempts right after each other and mark the job as failed.

There should be a way for the worker to delay a failed job some. For an app, I just need it to honor the delay and try again after X seconds, so that is why the code is like this. It is not very ideal though.