rescoreRides runs in one request #146
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#146
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(session 28)
rescoreRidesdecodes every file-backed ride from the entry's date in one request (about 1 ms a ride-hour to score, plus decode). Fine for one athlete's season; a years-back entry on a long history may want a background job.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about. Adding or deleting a dated threshold rescores every ride from that date.
rescoreRides(src/server/rescore-store.ts) does it inside one request: it decodes each ride file and scores it (about 1 ms per ride-hour plus decoding).Status (checked 2026-11-08): unchanged.
When it matters: a threshold dated years back on a long history could push one request toward the function time limit. Then move it to a background job (
waitUntil, as feedback does). Not needed today.