Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit a59e53ee authored by fische_r's avatar fische_r
Browse files

sometimes only one worker returns

parent 109a7ce3
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ class train_segmentation: ...@@ -207,7 +207,7 @@ class train_segmentation:
fut = fut.compute() fut = fut.compute()
im = fut.data im = fut.data
self.client.restart(wait_for_workers=False) self.client.restart(wait_for_workers=False)
if not len(self.client.cluster.workers)>0: if not len(self.client.cluster.workers)>1:
self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers) self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers)
# if imfirst is not None and type(imfirst) is not np.ndarray: # if imfirst is not None and type(imfirst) is not np.ndarray:
...@@ -375,7 +375,7 @@ class train_segmentation: ...@@ -375,7 +375,7 @@ class train_segmentation:
feat_stack = fut.data feat_stack = fut.data
self.client.restart(wait_for_workers=False) self.client.restart(wait_for_workers=False)
if not len(self.client.cluster.workers)>0: if not len(self.client.cluster.workers)>1:
self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers) self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers)
# TODO client reboot if workers can't return # TODO client reboot if workers can't return
if type(feat_stack_t_idp) is not np.ndarray: if type(feat_stack_t_idp) is not np.ndarray:
...@@ -384,7 +384,7 @@ class train_segmentation: ...@@ -384,7 +384,7 @@ class train_segmentation:
fut = fut.compute() fut = fut.compute()
feat_stack_t_idp = fut.data feat_stack_t_idp = fut.data
self.client.restart(wait_for_workers=False) self.client.restart(wait_for_workers=False)
if not len(self.client.cluster.workers)>0: if not len(self.client.cluster.workers)>1:
self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers) self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers)
feat_stack = np.concatenate([feat_stack, feat_stack_t_idp], axis = 2) feat_stack = np.concatenate([feat_stack, feat_stack_t_idp], axis = 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment