Skip to content

Commit 1901166

Browse files
authored
Merge pull request #66 from weka/loki-only_mode
bigfixes and cleanup
2 parents 91a865b + 4a9e685 commit 1901166

File tree

3 files changed

+92
-91
lines changed

3 files changed

+92
-91
lines changed

async_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def __init__(self, cluster, max_procs=8, max_threads_per_proc=100):
266266
self.max_threads_per_proc = max_threads_per_proc
267267

268268
# # of processes and threads to run... (self-tuning)
269+
cluster_size = self.cluster.sizeof()
269270
self.num_slaves = math.ceil(self.cluster.sizeof() / self.max_threads_per_proc)
270271
if self.num_slaves > max_procs:
271272
self.num_slaves = max_procs # limit the number of slave processes we start

0 commit comments

Comments
 (0)