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

chore: print lines debug #6182

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Merge branch 'master' of https://github.com/jina-ai/jina into print-t…
…imes
JoanFM committed Jul 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 303ee14c7267b9003e13a47de0a62019942a6e4d
4 changes: 2 additions & 2 deletions jina/clients/base/http.py
Original file line number Diff line number Diff line change
@@ -243,9 +243,9 @@ def _result_handler(result):
_e2 = timeit.default_timer()
print(f'Create DataRequest from r_str took {_e2 - _e}s')
if da is not None:
resp.data.docs = da
resp.direct_docs = da
_e3 = timeit.default_timer()
print(f'Setting resp.data.docs took {_e3 - _e2}s')
print(f'Setting direct_docs took {_e3 - _e2}s')

callback_exec(
response=resp,
2 changes: 1 addition & 1 deletion jina/clients/mixin.py
Original file line number Diff line number Diff line change
@@ -419,7 +419,7 @@ async def _get_results(*args, **kwargs):
if return_responses:
result.append(resp)
else:
result.extend(resp.data.docs)
result.extend(resp.docs)

_end = timeit.default_timer()
print(f'######## {_end} => I AM GETTING RESULTS took {_end - _start}s')
2 changes: 1 addition & 1 deletion jina/serve/runtimes/worker/request_handling.py
Original file line number Diff line number Diff line change
@@ -729,7 +729,7 @@ async def handle(
tracing_context=tracing_context,
)
_start = default_timer()
_ = self._set_result(requests, return_data, docs)
_ = self._set_result(requests, return_data, docs, http=http)

for req in requests:
req.add_executor(self.deployment_name)
You are viewing a condensed version of this merge commit. You can view the full changes here.