def job_is_retry()

in cdsreaper/jobwatcher.py [0:0]


    def job_is_retry(s: V1JobStatus)->bool:
        """
        returns true if the given job is retrying, i.e. it's active and has at least one failure
        :param s:
        :return:
        """
        return s.active is not None and s.active>0 and s.failed>0