Merged
Conversation
POST /api/internal/monitor/refresh on a 15-past-the-hour cron so the dashboard stays current without depending on a user click. Mirrors the offboarding-daily workflow shape (admin token via existing ADMIN_TOKEN secret, structured step summary, manual workflow_dispatch).
3 tasks
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
.github/workflows/monitor-refresh.yml: POSTs to/api/internal/monitor/refreshevery hour at :15offboarding-daily.yml— same admin-token auth, same step-summary pattern, same concurrency safetysecrets.ADMIN_TOKENalready exists from offboarding workflow)requireAdminTokenWhy
Before this, the monitor dashboard only updated when a logged-in user clicked the refresh button. Stale data would silently sit there until someone noticed. The two PRs that landed yesterday (#675 schema, #678 loud fails) made the refresh path reliable; this PR is the missing piece that actually triggers it.
Why GitHub Actions over an in-process scheduler
:15offset spreads load relative to the top-of-hour scrapersTest plan
Total articlesandActive topics:15tick and confirm the scheduled run is green--max-time 600andtimeout-minutes: 15accordingly