8000 fix: change alias to pea by JoanFM · Pull Request #2719 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: change alias to pea #2719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ def pod(args: 'Namespace'):
pass


# alias
executor = pod


def pea(args: 'Namespace'):
"""
Start a Pea
Expand All @@ -36,6 +32,10 @@ def pea(args: 'Namespace'):
pass


# alias
executor = pea


def gateway(args: 'Namespace'):
"""
Start a Gateway Pod
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/mwu-encoder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM jinaai/jina:test-pip

ADD *.py mwu_encoder.yml ./

ENTRYPOINT ["jina", "pea", "--uses", "mwu_encoder.yml"]
ENTRYPOINT ["jina", "executor", "--uses", "mwu_encoder.yml"]
20 changes: 10 additions & 10 deletions tests/unit/peapods/runtimes/container/test_container_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,20 @@ def test_flow_topo1(docker_image_built, _logforward):
name='d0',
uses='docker://jinaai/jina:test-pip',
uses_internal=_logforward,
entrypoint='jina pea',
entrypoint='jina executor',
)
.add(
name='d1',
uses='docker://jinaai/jina:test-pip',
uses_internal=_logforward,
entrypoint='jina pea',
entrypoint='jina executor',
)
.add(
name='d2',
uses='docker://jinaai/jina:test-pip',
uses_internal=_logforward,
needs='d0',
entrypoint='jina pea',
entrypoint='jina executor',
)
.join(['d2', 'd1'])
)
Expand All @@ -144,15 +144,15 @@ def test_flow_topo_mixed(docker_image_built, _logforward):
name='d4',
uses='docker://jinaai/jina:test-pip',
uses_internal=_logforward,
entrypoint='jina pea',
entrypoint='jina executor',
)
.add(name='d5', uses=_logforward)
.add(
name='d6',
uses='docker://jinaai/jina:test-pip',
uses_internal=_logforward,
needs='d4',
entrypoint='jina pea',
entrypoint='jina executor',
)
.join(['d6', 'd5'])
)
Expand All @@ -167,15 +167,15 @@ def test_flow_topo_parallel(docker_image_built, _logforward):
.add(
name='d7',
uses='docker://jinaai/jina:test-pip',
entrypoint='jina pea',
entrypoint='jina executor',
uses_internal=_logforward,
parallel=3,
)
.add(name='d8', parallel=3)
.add(
name='d9',
uses='docker://jinaai/jina:test-pip',
entrypoint='jina pea',
entrypoint='jina executor',
uses_internal=_logforward,
needs='d7',
)
Expand All @@ -193,7 +193,7 @@ def test_flow_topo_ldl_parallel(docker_image_built, _logforward):
.add(
name='d11',
uses='docker://jinaai/jina:test-pip',
entrypoint='jina pea',
entrypoint='jina executor',
uses_internal=_logforward,
parallel=3,
)
Expand Down Expand Up @@ -262,7 +262,7 @@ def test_tail_host_docker2local_parallel(docker_image_built, _logforward):
.add(
name='d10',
uses='docker://jinaai/jina:test-pip',
entrypoint='jina pea',
entrypoint='jina executor',
uses_internal=_logforward,
parallel=3,
)
Expand All @@ -278,7 +278,7 @@ def test_tail_host_docker2local(docker_image_built, _logforward):
.add(
name='d12',
uses='docker://jinaai/jina:test-pip',
entrypoint='jina pea',
entrypoint='jina executor',
uses_internal=_logforward,
)
.add(name='d13')
Expand Down
0