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

[Dashboard] Fix Log Download #4844

Merged
merged 4 commits into from
Mar 4, 2025
Merged

Conversation

KeplerC
Copy link
Collaborator

@KeplerC KeplerC commented Feb 28, 2025

fixed the previous version that cannot download logs in the dashboard

it also adds a preview page of the controller log

Screenshot 2025-02-27 at 5 29 24 PM

Comment on lines 180 to 191
# Validate column count
if rows and len(rows[0]) != len(JOB_TABLE_COLUMNS):
# Validate column count - Updated to account for the extra log content column
if rows and len(rows[0]) != len(JOB_TABLE_COLUMNS) + 1: # +1 for log content
raise RuntimeError(
f'Dashboard code and managed job queue code are out of sync. '
f'Expected {(JOB_TABLE_COLUMNS)} columns, got {(rows[0])}')
f'Expected {len(JOB_TABLE_COLUMNS)} columns plus log content, got {len(rows[0])} total')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why can't we just add the new column to JOB_TABLE_COLUMNS? Would also make the above logic (all the else: row.append stuff) less error-prone.

@KeplerC KeplerC merged commit 7bc8265 into skypilot-org:master Mar 4, 2025
18 checks passed
@KeplerC KeplerC deleted the fix/dashboard-path branch March 4, 2025 19:09
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.

2 participants