code: def reissueOverLongJobs(self):
          
          maxJobDuration = self.config.maxJobDuration
          jobsToKill = []
          if maxJobDuration < 10000000:  # We won't bother doing anything if rescue time > 16 weeks.
              runningJobs = self.batchSystem.getRunningBatchJobIDs()
              for jobBatchSystemID in list(runningJobs.keys()):
                  if runningJobs[jobBatchSystemID] > maxJobDuration:
                      logger.warn("The job: %s has been running for: %s seconds, more than the "
                                  "max job duration: %s, we'll kill it",
                                  str(self.jobBatchSystemIDToIssuedJob[jobBatchSystemID].jobStoreID),
                                  str(runningJobs[jobBatchSystemID]),
                                  str(maxJobDuration))
                      jobsToKill.append(jobBatchSystemID)
              self.killJobs(jobsToKill)
docs: Check each issued job - if it is running for longer than desirable
          issue a kill instruction.
          Wait for the job to die then we pass the job to processFinishedJob.