MCPcopy Create free account
hub / github.com/DataArcTech/DataArc-SynData-Toolkit / __init__

Method __init__

sdgsystem/parallel.py:13–25  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

11
12class 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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected