Skip to content

Commit

Permalink
[release] stream the full anyscale log to buildkite (ray-project#47808)
Browse files Browse the repository at this point in the history
Currently we only print 100 last lines of anyscale job log to buildkite.
This PR removes that limit and prints everything instead. CC:
@kouroshHakha

Test:
- CI

Signed-off-by: can <[email protected]>
Signed-off-by: ujjawal-khare <[email protected]>
  • Loading branch information
can-anyscale authored and ujjawal-khare committed Oct 15, 2024
1 parent 499a88e commit 2191e4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release/ray_release/job_manager/anyscale_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ def _get_ray_logs(self) -> str:
"""
Obtain the last few logs
"""
return anyscale.job.get_logs(id=self.job_id, max_lines=LAST_LOGS_LENGTH)
if self.cluster_manager.log_streaming_limit == -1:
return anyscale.job.get_logs(id=self.job_id)
return anyscale.job.get_logs(
id=self.job_id, max_lines=self.cluster_manager.log_streaming_limit
)

def get_last_logs(self):
if not self.job_id:
Expand Down

0 comments on commit 2191e4f

Please sign in to comment.