Repository navigation
feat(ui): show banner on experiments list when scheduling is paused - #1217
Merged
Merged
Conversation
Add a non-admin GetSchedulingStatus RPC (GET /v1/health/scheduling) to the health service so any authenticated user can see whether global scheduling is paused. The experiments list page polls it on load and on auto-reload, and shows a warning banner while scheduling is paused. The banner is behind the pause_scheduling_enabled feature flag and treats errors as not paused. TAG=agy CONV=01951f96-75e9-4755-98e8-34ac53db3982
There was a problem hiding this comment.
Code Review
This pull request introduces a new GetSchedulingStatus RPC to the HealthService to retrieve the global workload scheduling pause status, along with its backend implementation, unit tests, and updated architecture documentation. On the frontend, the experiments list page is updated to fetch this status and display a warning banner when scheduling is paused. Feedback on the changes suggests logging the error when fetching the scheduling status fails in the UI store, rather than swallowing it silently, to facilitate troubleshooting.
Log the error before failing open so health service outages on the experiments list page are diagnosable, and assert the log in the store test. TAG=agy CONV=01951f96-75e9-4755-98e8-34ac53db3982
Move the banner markup and styles into a reusable presentational SchedulingPausedBanner component (with harness and tests). The experiments list page still controls visibility via isSchedulingPaused(). Add a page test proving experiments render while the status request is pending. TAG=agy CONV=01951f96-75e9-4755-98e8-34ac53db3982
andrzejfudro
marked this pull request as ready for review
October 12, 2026 14:51
andrzejfudro
enabled auto-merge
October 12, 2026 14:57
janzak-dev
reviewed
Oct 13, 2026
…d requests Add `PauseScheduler.IsPausedCached` with an in-memory `CacheTTL` cache and write-through updates on `Pause` and `Resume` after the Spanner transaction commits (keeping `IsPaused` uncached for the admin panel), remove redundant nil dependency checks in `GetSchedulingStatus`, and propagate client context cancellations without logging false-positive internal errors. TAG=agy CONV=01951f96-75e9-4755-98e8-34ac53db3982
andrzejfudro
force-pushed
the
feat/scheduling-paused-banner
branch
from
October 13, 2026 10:59
b7aa755 to
33e0e1e
Compare
…d-banner # Conflicts: # cmd/health_service/pause_scheduling.go
janzak-dev
previously approved these changes
Oct 13, 2026
Use `singleflight.Group` in `pauseScheduler.IsPausedCached` so concurrent cache misses share a single underlying Spanner read. TAG=agy CONV=01951f96-75e9-4755-98e8-34ac53db3982
andrzejfudro
force-pushed
the
feat/scheduling-paused-banner
branch
from
October 13, 2026 13:41
091395a to
d791629
Compare
janzak-dev
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When an admin pauses scheduling, regular users on
/experimentshad no way of knowing it. New experiments just sat there. This PR adds a warning banner that says scheduling is paused and that new experiments will wait until an administrator resumes it.Key Changes
GetSchedulingStatusRPC (GET /v1/health/scheduling). Any authenticated user can call it, unlike the admin-only pause/resume RPCs. It returnsfalsewhen the feature flag is off, reads the pause state viaPauseScheduler.IsPausedCached(cached forCacheTTLwith write-through updates onPauseandResume, whileIsPausedremains uncached for the admin panel), and returns a genericInternalerror on storage failures while propagating client cancellations.HealthService.getSchedulingStatus(), plus a newisSchedulingPausedstate inExperimentsListPageStore. The page fetches it on load and on each auto-reload, without blocking the experiments fetch. The banner is a new standalone display component,SchedulingPausedBannerincommon/components/. The fetch only runs whenpauseSchedulingEnabledis set, and any error is logged and treated as not paused.components.md.Assumptions
Verification
bazel test //api:protos_breaking_test //cmd/health_service:server_test //cmd/ui:ui_unit_tests(Passed)./.githooks/pre-commit --check: all linters pass; the onlyaddlicensehits are local untracked files outside this PR...dev environmentTAG=agy
CONV=01951f96-75e9-4755-98e8-34ac53db3982