def __init__(self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) self.process_groups.item_cls = BGSimProcessGroup self.config_file = kwargs.get("config_file", None) self.failed_components = sets.Set() if self.config_file is not None: self.configure(self.config_file)
def __init__ (self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) self.process_groups.item_cls = BGSimProcessGroup self.config_file = kwargs.get("config_file", None) self.failed_components = sets.Set() if self.config_file is not None: self.configure(self.config_file)
def __init__ (self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) self.process_groups.item_cls = BGProcessGroup self.diag_pids = dict() self.configure() # initiate the process before starting any threads thread.start_new_thread(self.update_partition_state, tuple())
def __init__(self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) #why this magic number? self.process_groups.item_cls = BGSimProcessGroup self.config_file = kwargs.get("config_file", None) self.failed_components = set() if self.config_file is not None: self.configure(self.config_file)
def __init__(self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) self.process_groups.item_cls = BGProcessGroup self.diag_pids = dict() self.configure() # initiate the process before starting any threads thread.start_new_thread(self.update_partition_state, tuple())
def __init__ (self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) #why this magic number? self.process_groups.item_cls = BGSimProcessGroup self.config_file = kwargs.get("config_file", None) self.failed_components = set() if self.config_file is not None: self.configure(self.config_file)
def __init__ (self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) #why this magic number? self.process_groups.item_cls = BGSimProcessGroup self.node_card_cache = dict() self.failed_components = set() self.config_file = kwargs.get("config_file", get_config_option('bgsystem', 'system_def_file', None)) if self.config_file is not None: self.logger.log(1, "init: loading machine configuration") self.configure(self.config_file) self.logger.log(1, "init: recomputing partition state") self._recompute_partition_state()
def __init__(self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) #why this magic number? self.process_groups.item_cls = BGSimProcessGroup self.node_card_cache = dict() self.failed_components = set() self.config_file = kwargs.get( "config_file", get_config_option('bgsystem', 'system_def_file', None)) if self.config_file is not None: self.logger.log(1, "init: loading machine configuration") self.configure(self.config_file) self.logger.log(1, "init: recomputing partition state") self._recompute_partition_state()
def __init__ (self, *args, **kwargs): BGBaseSystem.__init__(self, *args, **kwargs) sys.setrecursionlimit(5000) self.process_groups.item_cls = BGProcessGroup self.bp_cache = dict() self.node_card_cache = dict() self.wire_cache = dict() self.busted_switches = set() self.busted_wires = set() self.logger.debug("init: loading machine configuration") self.configure() self.logger.debug("init: recomputing partition state") self._recompute_partition_state() # initiate the process before starting any threads thread.start_new_thread(self.update_partition_state, tuple())