Skip to content

Commit 9eb9dbb

Browse files
antgonzaElDeveloper
authored andcommitted
fix #1066 (#2058)
1 parent 15fcceb commit 9eb9dbb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

qiita_ware/context.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ class Dispatch(object):
6060
def __init__(self):
6161
from moi import ctx_default
6262
self.demo = Client(profile=ctx_default)
63+
64+
# checking that at least 2 workers exist, see:
65+
# https://github.com/biocore/qiita/issues/1066
66+
workers = len(self.demo.ids)
67+
if workers < 2:
68+
raise ValueError('You need to have at least 2 IPython workers '
69+
'but you have %d' % workers)
70+
6371
self.demo_lview = self.demo.load_balanced_view()
6472

6573
def sync(self, data):

0 commit comments

Comments
 (0)