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

Streaming log for agent #4767

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Streaming log for agent #4767

wants to merge 4 commits into from

Conversation

pingsutw
Copy link
Member

Tracking issue

#3936

Why are the changes needed?

Use streaming response for the getLogs API since users don't want to pull all the logs in the one gRPC call.

What changes were proposed in this pull request?

Update response of GetTaskLogs to stream flyteidl.admin.GetTaskLogsResponse

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jan 23, 2024
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (73b1d40) 58.21% compared to head (bf2fe55) 58.20%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4767      +/-   ##
==========================================
- Coverage   58.21%   58.20%   -0.01%     
==========================================
  Files         626      626              
  Lines       53855    53950      +95     
==========================================
+ Hits        31349    31402      +53     
- Misses      19996    20038      +42     
  Partials     2510     2510              
Flag Coverage Δ
unittests 58.20% <ø> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

EngHabu
EngHabu previously approved these changes Jan 23, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 23, 2024
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
kumare3
kumare3 previously approved these changes Jan 23, 2024
@@ -23,7 +23,7 @@ service AsyncAgentService {
rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){};

// GetTaskLogs returns task execution logs, if available.
rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (flyteidl.admin.GetTaskLogsResponse){};
rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (stream flyteidl.admin.GetTaskLogsResponse){};
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the usage pattern look like here? GetTaskLogsResponse contains a list of string results + a page token

@pingsutw pingsutw marked this pull request as draft January 24, 2024 07:29
Signed-off-by: Kevin Su <[email protected]>
@pingsutw pingsutw marked this pull request as ready for review January 24, 2024 21:09
@dosubot dosubot bot added the documentation Improvements or additions to documentation label Jan 24, 2024
@pingsutw pingsutw marked this pull request as draft January 25, 2024 01:56
@pingsutw
Copy link
Member Author

pingsutw commented Jan 25, 2024

converted to draft since Hattham has another pr to update the proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants