Fail job if number of tasks failed exceeds threshold

Yep, because we've multiplied by 100 on the numerator already, so any rounding is fine.