示例#1
0
    def _start_workers(self):
        log.info("Total workers: %s", self.params.worker_count)

        thread.set_total(self.params.concurrency)
        workers = multiprocessing.Pool(processes=self.params.worker_count)
        args = list(self._concurrency_slicer())

        workers.map(spawn_worker, args)
        workers.close()
        workers.join()
示例#2
0
 def setUp(self):
     thread_data.csv_readers = {}
     thread.set_total(1)  # set standard concurrency to 1 for all tests