Пример #1
0
 def __init__(self, config, log=None):
     self.numnodes = len(parse_spec_config(config))
     self.node2collection = {}
     self.node2pending = {}
     self.pending = []
     self.collection = None
     if log is None:
         self.log = Producer("loadsched")
     else:
         self.log = log.loadsched
     self.config = config
Пример #2
0
 def __init__(self, config, log=None):
     self.config = config
     self.numnodes = len(parse_spec_config(config))
     self.node2collection = {}
     self.node2pending = {}
     self._started = []
     self._removed2pending = {}
     if log is None:
         self.log = Producer("eachsched")
     else:
         self.log = log.eachsched
     self.collection_is_completed = False
Пример #3
0
 def __init__(self, config, log=None):
     self.config = config
     self.numnodes = len(parse_spec_config(config))
     self.dist_templates = self.config.getini("dist-templ")
     self.node_collection = {}
     self.node_pending = {}
     self.pending_async = []
     self.pending_sync = []
     self.collection = None
     if log is None:
         self.log = Producer("templsched")
     else:
         self.log = log.templsched
Пример #4
0
    def __init__(self, config, log=None):
        self.numnodes = len(parse_spec_config(config))
        self.collection = None

        self.workqueue = OrderedDict()
        self.assigned_work = OrderedDict()
        self.registered_collections = OrderedDict()

        if log is None:
            self.log = Producer("loadscopesched")
        else:
            self.log = log.loadscopesched

        self.config = config
Пример #5
0
 def __init__(self, config, log=None):
     super(LoadFileScheduling, self).__init__(config, log)
     if log is None:
         self.log = Producer("loadfilesched")
     else:
         self.log = log.loadfilesched
Пример #6
0
 def __init__(self, config, log=None):
     super().__init__(config, log)
     if log is None:
         self.log = Producer("loadgroupsched")
     else:
         self.log = log.loadgroupsched