code: def _gatherUpdatedJobs(self, updatedJobTuple):
          
          jobID, result, wallTime = updatedJobTuple
          # easy, track different state
          try:
              updatedJob = self.jobBatchSystemIDToIssuedJob[jobID]
          except KeyError:
              logger.warn("A result seems to already have been processed "
                          "for job %s", jobID)
          else:
              if result == 0:
                  cur_logger = (logger.debug if str(updatedJob.jobName).startswith(CWL_INTERNAL_JOBS)
                                else logger.info)
                  cur_logger('Job ended successfully: %s', updatedJob)
                  if self.toilMetrics:
                      self.toilMetrics.logCompletedJob(updatedJob)
              else:
                  logger.warn('Job failed with exit value %i: %s',
                              result, updatedJob)
              self.processFinishedJob(jobID, result, wallTime=wallTime)
docs: Gather any new, updated jobGraph from the batch system