change the code to use a class var rather then a hard coded value for the max failed queue items