def job_is_running()

in cdsreaper/jobwatcher.py [0:0]


    def job_is_running(s: V1JobStatus)->bool:
        """
        returns true if the given job has more than one active pod, i.e. it is running now
        :param s: V1JobStatus object to be interrogated
        :return: boolean
        """
        return s.active is not None and s.active>0 and (s.failed is None or s.failed==0)