Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rlehman221
Copy link
Contributor

@rlehman221 rlehman221 commented Aug 25, 2025

Description

We currently have built-in support from SkyPilot for trailing logs through their SDK after launching a job. We want to extend this functionality to our other clusters as well.

This PR adds support for Slurm clusters by tailing the log file and streaming its contents directly to the user’s terminal. For clusters not covered in this PR, the behavior will remain unchanged and continue to show the loading spinner.

Features Added:

  • Tailing logs is now supported in Slurm as an IOStream to our rich console
  • Tailing logs is Sky Pilot is now returning an IOStream to our rich console
  • Support for passing in an IO file for the logs to be streamed to works with the parameter "--output-filepath"
  • Sky Pilot upgraded and patched to support streaming to a file

BEFORE With Slurm
Screenshot 2025-08-25 at 1 37 31 PM

AFTER With Slurm
image

AFTER With Sky Pilot
Screenshot 2025-08-26 at 11 08 55 AM

After With Local Cluster
Screenshot 2025-08-26 at 11 16 46 AM

Related issues

Towards OPE-1344

Before submitting

  • This PR only changes documentation. (You can ignore the following checks in that case)
  • Did you read the contributor guideline Pull Request guidelines?
  • Did you link the issue(s) related to this PR in the section above?
  • Did you add / update tests where needed?

Reviewers

At least one review from a member of oumi-ai/oumi-staff is required.

@wizeng23
Copy link
Contributor

Do you mind updating Fixes OPE-1344 in your PR description to Towards OPE-1344? We should mark the issue as fixed only when all clusters support this functionality.

Copy link
Contributor

@wizeng23 wizeng23 left a comment

Choose a reason for hiding this comment

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

For testing, could you try running the slurm, local, and sky clusters? Example local cluster at "notebooks/Oumi - A Tour.ipynb". For these tests, it would be good to confirm that the logs display properly (ex. for Slurm, logs that are colored text should still have color)

@rlehman221 rlehman221 marked this pull request as ready for review August 26, 2025 15:18
@rlehman221 rlehman221 requested a review from wizeng23 August 26, 2025 19:35
Copy link
Contributor

@wizeng23 wizeng23 left a comment

Choose a reason for hiding this comment

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

Feel free to merge once comments are addressed and tests are fixed

@rlehman221 rlehman221 requested a review from taenin August 28, 2025 18:59
@rlehman221 rlehman221 requested a review from wizeng23 August 28, 2025 21:17
@rlehman221 rlehman221 requested a review from wizeng23 September 2, 2025 13:14
@wizeng23
Copy link
Contributor

wizeng23 commented Sep 2, 2025

Could you keep the PR description updated with the latest status on how the PR works, any issues with it, etc.?

@rlehman221 rlehman221 added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit 7f7ed71 Sep 3, 2025
2 of 3 checks passed
@rlehman221 rlehman221 deleted the rlehman/trailing-launcher-logs branch September 3, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants