Cycles query now counts numbers of failed jobs.