def _parse_progress_from_job_tracker(html_bytes):
 start = html_bytes.rfind('Running Jobs')
 if (start == (-1)):
  return (None, None)
 end = html_bytes.find('Jobs', (start + len('Running Jobs')))
 if (end == (-1)):
  end = None
 html_bytes = html_bytes[start:end]
 matches = _JOB_TRACKER_HTML_RE.findall(html_bytes)
 if (len(matches) >= 2):
  return (float(matches[0]), float(matches[1]))
 else:
  return (None, None)

def _parse_progress_from_job_tracker ( html_bytes ) : start = html_bytes . rfind ( 'Running Jobs' ) if ( start == ( - 1 ) ) : return ( None , None ) end = html_bytes . find ( 'Jobs' , ( start + len ( 'Running Jobs' ) ) ) if ( end == ( - 1 ) ) : end = None html_bytes = html_bytes [ start : end ] matches = _JOB_TRACKER_HTML_RE . findall ( html_bytes ) if ( len ( matches ) >= 2 ) : return ( float ( matches [ 0 ] ) , float ( matches [ 1 ] ) ) else : return ( None , None )
pull from running job from job tracker html as floats .