hunk.code_window:         if status == HaJobStates.TERMINATED and not job_running:
               # Soft infra error
               retcode = -4
           else:
               retcode = job_status_to_return_code[status]
           duration = time.time() - self.start_time
           return retcode, duration
       def run_and_wait(
           self,
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep
hunk.after_edit:         self._duration = time.time() - self.start_time
           return retcode, self._duration
  
hunk.file_path: release/ray_release/job_manager/anyscale_job_manager.py
hunk.type: replace
file: # Algolia-Crawler-Verif: C37A60AFB138256B
  User-agent: *
  Disallow: /
  Allow: /*/latest/
  Allow: /en/latest/   # Fallback for bots that don't understand wildcards
  Allow: /*/master/
  Allow: /en/master/   # Fallback for bots that don't understand wildcards
  Sitemap: https://docs.ray.io/en/latest/sitemap.xml
  