コード例 #1
0
ファイル: nimbus.py プロジェクト: ericblau/ipf-xsede
    def _run(self):
        self.info("running")
        step = ComputingActivitiesStep()    # use ComputingActivitiesStep to initialize cache of activities
        step.setParameters({},self.params)
        for activity in step._run():
            self.activities[activity.LocalIDFromManager] = activity

        try:
            nimbus_dir = self.params["nimbus_dir"]
        except KeyError:
            raise StepError("nimbus_dir parameter not specified")

        log_file = os.path.join(nimbus_dir,"var","services.log")
        watcher = LogFileWatcher(self._logEntry,log_file,self.position_file)
        watcher.run()
コード例 #2
0
ファイル: nimbus.py プロジェクト: sdschpc/ipf
    def _run(self):
        self.info("running")
        step = ComputingActivitiesStep(
        )  # use ComputingActivitiesStep to initialize cache of activities
        step.setParameters({}, self.params)
        for activity in step._run():
            self.activities[activity.LocalIDFromManager] = activity

        try:
            nimbus_dir = self.params["nimbus_dir"]
        except KeyError:
            raise StepError("nimbus_dir parameter not specified")

        log_file = os.path.join(nimbus_dir, "var", "services.log")
        watcher = LogFileWatcher(self._logEntry, log_file, self.position_file)
        watcher.run()
コード例 #3
0
ファイル: sge.py プロジェクト: sdschpc/ipf
    def _run(self):
        self.info("running")

        # if a site is generating a schedd_runlog, can use it to find jobs that are held because of dependencies

        try:
            reporting_file = self.params["reporting_file"]
        except KeyError:
            try:
                reporting_file = os.path.join(os.environ["SGE_ROOT"],
                                              "default", "common", "reporting")
            except KeyError:
                msg = "no reporting_file specified and the SGE_ROOT environment variable is not set"
                self.error(msg)
                raise StepError(msg)
        watcher = LogFileWatcher(self._logEntry, reporting_file,
                                 self.position_file)
        watcher.run()
コード例 #4
0
ファイル: slurm.py プロジェクト: ericblau/ipf-xsede
 def _run(self):
     log_file = self.params.get("slurmctl_log_file","/usr/local/slurm/var/slurmctl.log")
     watcher = LogFileWatcher(self._logEntry,log_file,self.position_file)
     watcher.run()
コード例 #5
0
 def _run(self):
     log_file = self.params.get("slurmctl_log_file",
                                "/usr/local/slurm/var/slurmctl.log")
     watcher = LogFileWatcher(self._logEntry, log_file, self.position_file)
     watcher.run()