def __init__(self, *args, **kwargs): BGSched.__init__(self, *args, **kwargs) self.get_current_time = ComponentProxy("event-manager").get_current_time self.COMP_QUEUE_MANAGER = "cluster-queue-manager" self.COMP_SYSTEM = "cluster-system" self.queues = Cobalt.Components.bgsched.QueueDict(self.COMP_QUEUE_MANAGER) self.jobs = Cobalt.Components.bgsched.JobDict(self.COMP_QUEUE_MANAGER) self.running_job_walltime_prediction = False
def __init__(self, *args, **kwargs): BGSched.__init__(self, *args, **kwargs) self.get_current_time = ComponentProxy("event-manager").get_current_time predict_scheme = kwargs.get("predict", False) if predict_scheme: self.running_job_walltime_prediction = bool(int(predict_scheme[2])) else: self.running_job_walltime_prediction = False