original_docstring: Poll WMI job state for completion
docstring: Poll WMI job state for completion
docstring_tokens: Poll WMI job state for completion
code: def _check_job_status(self, jobpath):
          """Poll WMI job state for completion"""
          job_wmi_path = jobpath.replace('\\', '/')
          job = wmi.WMI(moniker=job_wmi_path)
  
          while job.JobState == constants.WMI_JOB_STATE_RUNNING:
              time.sleep(0.1)
              job = wmi.WMI(moniker=job_wmi_path)
          return job.JobState == constants.WMI_JOB_STATE_COMPLETED
code_tokens: def _check_job_status ( self , jobpath ) : job_wmi_path = jobpath . replace ( '\\' , '/' ) job = wmi . WMI ( moniker = job_wmi_path ) while job . JobState == constants . WMI_JOB_STATE_RUNNING : time . sleep ( 0.1 ) job = wmi . WMI ( moniker = job_wmi_path ) return job . JobState == constants . WMI_JOB_STATE_COMPLETED
short_docstring: Poll WMI job state for completion
short_docstring_tokens: Poll WMI job state for completion
comment: """Poll WMI job state for completion"""