Exemplo n.º 1
0
Arquivo: utils.py Projeto: dbiir/T-SQL
 def execute(self):
     if not self.operations or len(self.operations) == 0:
         return
     pool = OperationWorkerPool(numWorkers=self.parallelism,
                                operations=self.operations)
     pool.join()
     pool.haltWork()
Exemplo n.º 2
0
 def execute(self):
     """TODO: Make Command a subclass of Operation. Then, make WorkerPool work with Operation objects."""
     pool = OperationWorkerPool(numWorkers=self.parallelism,
                                operations=self.operations)
     pool.join()
     pool.haltWork()
     return None
Exemplo n.º 3
0
 def execute(self):
     if not self.operations or len(self.operations) == 0:
         return
     pool = OperationWorkerPool(numWorkers=self.parallelism, operations=self.operations)
     pool.join()
     pool.haltWork()
Exemplo n.º 4
0
Arquivo: utils.py Projeto: 50wu/gpdb
 def execute(self):        
     """TODO: Make Command a subclass of Operation. Then, make WorkerPool work with Operation objects."""
     pool = OperationWorkerPool(numWorkers=self.parallelism, operations=self.operations)
     pool.join()
     pool.haltWork()
     return None