示例#1
0
    def stats_collection_start(self):
        self.monitor = ResourceMonitor(("[Job %s]" % self.name),
                                       JOB_MONITOR_TIME)

        self.start_time = time.time()

        if self.mean_time != -1:
            log.debug(
                "Starting job [%s] expecting an execution time of %.2f [low: %.2f, high: %.2f]"
                % (self.name, self.mean_time, self.low_time, self.high_time))
        else:
            log.debug("Starting job [%s]" % self.name)