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}")}