Exemplo n.º 1
0
    def __init__(self, pipeline, retries, max_concurrent=None):

        self.pipeline = check.inst_param(pipeline, "pipeline",
                                         ReconstructablePipeline)
        self._retries = check.inst_param(retries, "retries", Retries)
        max_concurrent = max_concurrent if max_concurrent else multiprocessing.cpu_count(
        )
        self.max_concurrent = check.int_param(max_concurrent, "max_concurrent")
Exemplo n.º 2
0
 def __init__(self, retries, max_concurrent=None):
     self._retries = check.inst_param(retries, "retries", RetryMode)
     max_concurrent = max_concurrent if max_concurrent else multiprocessing.cpu_count(
     )
     self.max_concurrent = check.int_param(max_concurrent, "max_concurrent")