Don't retry if Navvy::Job::NoRetryException is raised by the job #10

wants to merge 5 commits into


None yet
1 participant

rlivsey commented May 12, 2011

Most of the time if a job fails it's fine to retry later, however some things aren't recoverable and there's no point constantly retrying. For these things I still want to fail the job so that it comes up in our admin interface as failed and I can investigate it, but I don't want it to retry.

To this end, I added an exception (Navvy::Job::NoRetryException) which if raised by the job means that it won't bother queuing it up for a retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment