How to use the pydra.cluster.module.Module._register function in pydra

To help you get started, we’ve selected a few pydra examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kreneskyp / Pydra / pydra / cluster / master / node_connection_manager.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        #cluster management
        self.nodes = self.load_nodes()
        self.workers = {}
github kreneskyp / Pydra / pydra / cluster / node / worker_connection_manager.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        self.worker_connection_manager = self
        self.workers = {}
github kreneskyp / Pydra / pydra / cluster / node / master_connection_manager.py View on Github external
def _register(self, manager):
        Module._register(self, manager)        
        self.port = pydra_settings.PORT
        self.node_key = None
        #load crypto keys for authentication
        self.pub_key, self.priv_key = load_crypto('%s/node.key' % \
                pydra_settings.RUNTIME_FILES_DIR)
        self.master_pub_key = load_crypto('%s/node.master.key' % \
                pydra_settings.RUNTIME_FILES_DIR, create=False, both=False)
        self.master = None
github kreneskyp / Pydra / pydra / cluster / node / worker_manager.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        self.workers = {}
github kreneskyp / Pydra / pydra / cluster / node / node_information.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        self.determine_info()
github kreneskyp / Pydra / pydra / cluster / master / scheduler.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        
        self._queue = []
        self._active_tasks = {}     # caching uncompleted task instances
        self._idle_workers = []     # all workers are seen equal
        self._active_workers = {}   # worker-job mappings
        self._waiting_workers = {}  # task-worker mappings
        
        self._init_queue()
        reactor.callLater(self.update_interval, self._update_queue)
github kreneskyp / Pydra / pydra / cluster / worker / worker_connection_manager.py View on Github external
def _register(self, manager):
        Module._register(self, manager)
        self._lock_connection = Lock()