code: def getPIDStatus(jobStoreName):
          
          try:
              jobstore = Toil.resumeJobStore(jobStoreName)
          except NoSuchJobStoreException:
              return 'QUEUED'
          except NoSuchFileException:
              return 'QUEUED'
  
          try:
              with jobstore.readSharedFileStream('pid.log') as pidFile:
                  pid = int(pidFile.read())
                  try:
                      os.kill(pid, 0)  # Does not kill process when 0 is passed.
                  except OSError:  # Process not found, must be done.
                      return 'COMPLETED'
                  else:
                      return 'RUNNING'
          except NoSuchFileException:
              pass
          return 'QUEUED'
docs: Determine the status of a process with a particular pid.
  
          Checks to see if a process exists or not.
  
          :return: A string indicating the status of the PID of the workflow as stored in the jobstore.
          :rtype: str