示例#1
0
文件: utils.py 项目: 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()
示例#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
示例#3
0
文件: utils.py 项目: adam8157/gpdb
 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()
示例#4
0
文件: utils.py 项目: 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