Fix failed jobs still queueing