navvy icon indicating copy to clipboard operation
navvy copied to clipboard

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

Open rlivsey opened this issue 13 years ago • 0 comments

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.

rlivsey avatar May 12 '11 14:05 rlivsey