code: def getJobIDsForResultsFile(self, resultsFile):
          
          jobIDs = []
          for line in self._runParasol(['-extended', 'list', 'jobs'])[1]:
              fields = line.strip().split()
              if len(fields) == 0 or fields[-1] != resultsFile:
                  continue
              jobID = fields[0]
              jobIDs.append(int(jobID))
          return set(jobIDs)
docs: Get all queued and running jobs for a results file.