Failed paths were not cleared because the $builds query becomes empty as soon as the "finished" flag has been cleared. So this needs to be done last.
Failed paths were not cleared because the $builds query becomes empty as soon as the "finished" flag has been cleared. So this needs to be done last.