Exemple #1
0
Fichier : max.py Projet : badi/max
    def start(self):

        _logger.debug('Master: Starting')

        wq = workqueue.WorkQueue(port=self.port,
                                 name=self.name,
                                 catalog=self.catalog,
                                 exclusive=self.exclusive)

        if type(self.debug) is str and self.debug:
            workqueue.set_debug_flag(self.debug)

        self._wq = wq
Exemple #2
0
    def __init__(self, *args, **kws):

        port        = kws.pop('port', 9123)
        master_name = kws.pop('name', 'bs.sge.wq')
        catalog     = kws.pop('catalog', True)
        exclusive   = kws.pop('exclusive', False)
        wq_alg      = kws.pop('wq_alg', WORK_QUEUE_SCHEDULE_FCFS)

        wq_debug    = kws.pop('ccl_debug', 'all')
        set_debug_flag(wq_debug)

        backend.Backend.__init__(self, *args, **kws)

        self.workqueue = WorkQueue(port=port,name=master_name, catalog=catalog, exclusive=exclusive)
        self.workqueue.specify_algorithm(wq_alg)

        # self.workqueue.specify_master_mode(WORK_QUEUE_MASTER_MODE_STANDALONE)
        self.workqueue.specify_worker_mode(WORK_QUEUE_WORKER_MODE_SHARED)
    def __init__(self, *args, **kws):

        port = kws.pop('port', 9123)
        master_name = kws.pop('name', 'bs.sge.wq')
        catalog = kws.pop('catalog', True)
        exclusive = kws.pop('exclusive', False)
        wq_alg = kws.pop('wq_alg', WORK_QUEUE_SCHEDULE_FCFS)

        wq_debug = kws.pop('ccl_debug', 'all')
        set_debug_flag(wq_debug)

        backend.Backend.__init__(self, *args, **kws)

        self.workqueue = WorkQueue(port=port,
                                   name=master_name,
                                   catalog=catalog,
                                   exclusive=exclusive)
        self.workqueue.specify_algorithm(wq_alg)

        # self.workqueue.specify_master_mode(WORK_QUEUE_MASTER_MODE_STANDALONE)
        self.workqueue.specify_worker_mode(WORK_QUEUE_WORKER_MODE_SHARED)