示例#1
0
 def start_unpack_workers(self):
     threads = int(self.config['unpack']['threads'])
     logging.debug(f'Starting {threads} working threads')
     for process_index in range(threads):
         self.workers.append(
             start_single_worker(process_index, 'Unpacking',
                                 self.unpack_worker))
示例#2
0
 def start_unpack_workers(self):
     logging.debug('Starting {} working threads'.format(
         int(self.config['unpack']['threads'])))
     for process_index in range(int(self.config['unpack']['threads'])):
         self.workers.append(
             start_single_worker(process_index, 'Unpacking',
                                 self.unpack_worker))
示例#3
0
 def start_work_load_monitor(self):
     logging.debug('Start work load monitor...')
     return start_single_worker(None, 'unpack-load',
                                self._work_load_monitor)
示例#4
0
 def start_worker(self):
     for process_index in range(int(self.config[self.NAME]['threads'])):
         self.workers.append(start_single_worker(process_index, 'Analysis', self.worker))
     logging.debug('{}: {} worker threads started'.format(self.NAME, len(self.workers)))