Skip to content

Commit

Permalink
fix: conditional args (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-hoenicke committed Jan 13, 2021
1 parent 85a30ba commit 7e24d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jina/peapods/pods/__init__.py
Expand Up @@ -227,6 +227,8 @@ def _set_conditional_args(args):
args.runtime_cls = 'RESTRuntime'
else:
args.runtime_cls = 'GRPCRuntime'
if 'parallel' in args and args.parallel == 1:
args.separated_workspace = False

def connect_to_tail_of(self, pod: 'BasePod'):
"""Eliminate the head node by connecting prev_args node directly to peas """
Expand Down

0 comments on commit 7e24d12

Please sign in to comment.