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 = py.log.Producer("loadsched") else: self.log = log.loadsched self.config = config
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 = py.log.Producer("eachsched") else: self.log = log.eachsched self.collection_is_completed = False
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