Sources: configurable daily update-check time + next-run visibility (#194)#200
Open
jozef2svrcek wants to merge 1 commit into
Open
Sources: configurable daily update-check time + next-run visibility (#194)#200jozef2svrcek wants to merge 1 commit into
jozef2svrcek wants to merge 1 commit into
Conversation
…194) Restores the scheduling surface removed in #180. The scheduler already runs feeds on a daily off-peak check with automatic catch-up after downtime; this re-exposes and controls it. Backend: GET/POST `/schedule` — read the daily check time (minutes past local midnight), the next occurrence, and the FIDE-list refresh status (last refreshed + whether one's due); set the time. A new `scheduler::next_scheduled` computes the next run. Frontend: - Sources page gains a schedule control: "Check feeds for updates daily at [HH:MM]" with a "next check in Nh · a missed check runs at the next start" readout. One global time for all feeds (TWIC + Lichess). - Maintenance -> FIDE section now shows "Last refreshed <date>" and flags when a refresh is due (same scheduled housekeeping). Tests: next_scheduled keeps the clock time and is always in the future; daily-minute clock wrapping. Verified live: GET/POST round-trip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019KdPPg7P3bZ5p2RRhZZcv2
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.
Closes #194.
Restores the scheduling surface removed in #180. The scheduler already runs feeds on a daily off-peak check with automatic catch-up after downtime — this re-exposes and lets you control it, and surfaces the monthly FIDE refresh too.
Backend
GET/POST/schedule:GET→{ daily_minute, next_check (local ISO), fide_last_refreshed, fide_due }POST { daily_minute }→ sets the daily check time (wrapped to 0–1439)New
scheduler::next_scheduled(daily_minute)computes the next occurrence.Frontend
Verified
Live round-trip:
GET /schedule→{daily_minute:240, next_check:"…T04:00:00", …};POST {daily_minute:390}→ next_check becomes…T06:30:00.Build + clippy (
-D warnings) + 48 chess-db tests green; frontend builds.🤖 Generated with Claude Code
https://claude.ai/code/session_019KdPPg7P3bZ5p2RRhZZcv2