logger.error"Stopped retrying #{self.class} due to a #{exception}, which reoccurred on #{executions} attempts. The original exception was #{error.cause.inspect}."
retry_on(CustomCatchError){|job,exception|JobBuffer.add("Dealt with a job that failed to retry in a custom way after #{job.arguments.second} attempts")}
retry_on(CustomCatchError){|job,exception|JobBuffer.add("Dealt with a job that failed to retry in a custom way after #{job.arguments.second} attempts. Message: #{exception.message}")}