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

feat(block-scheduler): status page shows completed jobs #15580

Merged
merged 4 commits into from
Jan 3, 2025

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Jan 2, 2025

The scheduler keeps a circular buffer of the last n completed jobs. This PR now includes this information in the status page for easier tracking of system behavior. it also adds a test utility to play around with this locally. Here's an example:
image

@owen-d owen-d requested a review from a team as a code owner January 2, 2025 19:02

// TestPreview is a utility test that runs a local server with the status page.
// Run it with: go test -tags=preview -v -run TestPreview
func TestPreview(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: i guess we could just remove status_test.go since this is a better way to preview the page

Copy link
Contributor

@ashwanthgoli ashwanthgoli left a comment

Choose a reason for hiding this comment

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

lgtm

@owen-d owen-d merged commit 10194f7 into main Jan 3, 2025
58 checks passed
@owen-d owen-d deleted the scheduler-completed-status branch January 3, 2025 17:12
mveitas pushed a commit to mveitas/loki that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants