Skip to content
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

feat: add client to deployment #5590

Merged
merged 3 commits into from
Jan 10, 2023
Merged

feat: add client to deployment #5590

merged 3 commits into from
Jan 10, 2023

Conversation

alaeddine-13
Copy link
Contributor

@alaeddine-13 alaeddine-13 commented Jan 10, 2023

based on: #5574
closes: #5551

feat: add client to deployment

test: fix Deployment

test: deployment tests explicitly disable gateway

feat: add hot reload to deployment

test: add test for deployment uses

test: add test for deployment reload

style: fix overload and cli autocomplete

fix: fix reload

chore: close logger

test: add test for dynamic batching of deployment

fix: recreate exactly the same deployment on reload

style: fix overload and cli autocomplete

test: fix test for deployment dynamic batching

feat: add Client to Deployment

style: fix overload and cli autocomplete

chore: remove protocol parameter

refactor: executor serve uses deployment

style: fix overload and cli autocomplete

chore: apply suggestion

style: fix overload and cli autocomplete

style: fix overload and cli autocomplete

test: add test for client of Deployment

docs: update Executor serve documentation

test: fix serve test

docs: update docs

docs: change Deployment serve

chore: apply suggestions from code review

Co-authored-by: Alex Cureton-Griffiths <alexcg1@users.noreply.github.com>

chore: apply suggestion

docs: add hint for block()

test: keep deployment dynamic batching with block

docs: fix hint with code
@github-actions github-actions bot added size/M area/core This issue/PR affects the core codebase area/docs This issue/PR affects the docs area/testing This issue/PR affects testing labels Jan 10, 2023
@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Merging #5590 (b05b682) into master (69ff38a) will decrease coverage by 9.74%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##           master    #5590      +/-   ##
==========================================
- Coverage   87.06%   77.31%   -9.75%     
==========================================
  Files         124      122       -2     
  Lines        9931     9893      -38     
==========================================
- Hits         8646     7649     -997     
- Misses       1285     2244     +959     
Flag Coverage Δ
jina 77.31% <84.61%> (-9.75%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
jina/orchestrate/deployments/__init__.py 80.18% <84.61%> (-7.24%) ⬇️
jina/schemas/flow.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/meta.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/gateway.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/executor.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/deployment.py 0.00% <0.00%> (-100.00%) ⬇️
jina/schemas/helper.py 0.00% <0.00%> (-91.67%) ⬇️
jina/checker.py 0.00% <0.00%> (-85.37%) ⬇️
jina/parsers/deprecated.py 33.33% <0.00%> (-50.01%) ⬇️
... and 64 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

JoanFM
JoanFM previously approved these changes Jan 10, 2023
docs/concepts/executor/serve.md Outdated Show resolved Hide resolved
@@ -59,7 +58,8 @@ class MyExec(Executor):


with Deployment(uses=MyExec, port=12345, replicas=2) as dep:
dep.block()
docs = dep.post(inputs=DocumentArray.empty(1), on='/foo')
print(docs.texts)
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example of output?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

already there for each type https://feat-add-client-deployment--jina-docs.netlify.app/concepts/executor/serve/#serve-directly

docs/concepts/executor/serve.md Outdated Show resolved Hide resolved
docs/concepts/executor/serve.md Outdated Show resolved Hide resolved
docs/concepts/executor/serve.md Outdated Show resolved Hide resolved
docs/concepts/executor/serve.md Outdated Show resolved Hide resolved
@github-actions
Copy link

📝 Docs are deployed on https://feat-add-client-deployment--jina-docs.netlify.app 🎉

@alaeddine-13 alaeddine-13 requested a review from JoanFM January 10, 2023 16:40
@JoanFM JoanFM merged commit 8b7e235 into master Jan 10, 2023
@JoanFM JoanFM deleted the feat-add-client-deployment branch January 10, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/docs This issue/PR affects the docs area/testing This issue/PR affects testing size/M size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offer a client as part of Deployment when serving an Executor
3 participants