Initialize parallel executor Args: n_workers: number of workers for parallel processing timeout: limit of time for each process
(self,
n_workers: int = 4,
timeout: float = 300
)
| 11 | |
| 12 | class ParallelExecutor: |
| 13 | def __init__(self, |
| 14 | n_workers: int = 4, |
| 15 | timeout: float = 300 |
| 16 | ) -> None: |
| 17 | """ |
| 18 | Initialize parallel executor |
| 19 | |
| 20 | Args: |
| 21 | n_workers: number of workers for parallel processing |
| 22 | timeout: limit of time for each process |
| 23 | """ |
| 24 | self.n_workers = n_workers |
| 25 | self.timeout = timeout |
| 26 | |
| 27 | def execute( |
| 28 | self, |
nothing calls this directly
no outgoing calls
no test coverage detected