MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / create

Method create

benchmarks/src/environment/dask.py:38–40  ·  view source on GitHub ↗
(count: int, n_processes: int = 1, **kwargs)

Source from the content-addressed store, hash-verified

36
37 @staticmethod
38 def create(count: int, n_processes: int = 1, **kwargs) -> "DaskWorkerConfig":
39 assert count % n_processes == 0
40 return DaskWorkerConfig(processes=n_processes, threads_per_process=count // n_processes, **kwargs)
41
42
43@dataclasses.dataclass(frozen=True)

Callers 2

create_dask_workerFunction · 0.45
create_dask_workerFunction · 0.45

Calls 1

DaskWorkerConfigClass · 0.85

Tested by

no test coverage detected