in cdsreaper/jobwatcher.py [0:0]
def job_is_success(s:V1JobStatus)->bool:
"""
returns true if the given job is NOT running and it has successful completions
:param s: V1JobStatus object to be interrogated
:return: boolean
"""
return (s.active is None or s.active==0) and (s.succeeded is not None and s.succeeded>0)