Ejemplo n.º 1
0
 def background_worker_pool(self):
     if self._background_worker_pool is None:  # Initialize lazily.
         self._background_worker_pool = WorkerPool(
             parent_workunit=self.get_background_root_workunit(),
             run_tracker=self,
             num_workers=self._num_background_workers)
     return self._background_worker_pool
Ejemplo n.º 2
0
 def foreground_worker_pool(self):
     if self._foreground_worker_pool is None:  # Initialize lazily.
         self._foreground_worker_pool = WorkerPool(
             parent_workunit=self._main_root_workunit,
             run_tracker=self,
             num_workers=self._num_foreground_workers)
     return self._foreground_worker_pool