Skip to content

Commit

Permalink
fix: fix flow plot (#4257)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Feb 9, 2022
1 parent d466d6e commit b283672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jina/orchestrate/deployments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def _mermaid_str(self) -> List[str]:
.. # noqa: DAR201
"""
mermaid_graph = []
if self.role != DeploymentRoleType.GATEWAY and self.external:
if self.role != DeploymentRoleType.GATEWAY and not self.external:
mermaid_graph = [f'subgraph {self.name};', f'\ndirection LR;\n']

uses_before_name = (
Expand Down Expand Up @@ -944,6 +944,7 @@ def _mermaid_str(self) -> List[str]:
uses = [
args.uses for args in self.pod_args['pods'][0]
] # all the uses should be the same but let's keep it this way

if uses_before_name is None and uses_after_name is None:
# just put the replicas in parallel
for rep_i, (name, use) in enumerate(zip(names, uses)):
Expand Down

0 comments on commit b283672

Please sign in to comment.