mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
fix(insights): do not count a status run the bench sent nothing for
A status run whose whole chain was benched for background work sent no request, yet the caller opened the note's negative window as for any failure and raised its failure streak. The streak doubles the window up to two hours, so a note kept waiting long after its provider recovered. AllProvidersFailedError now says when no hop sent anything (sentNothing: every provider benched, or refused by the operator cost cap). The status chokepoint then holds the note for the first window without touching the streak (holdStatusNoteWhileBenched), and the caller's own failure write lands inside that window and neither moves nor counts it. A run that reached a provider counts as before. Refs #1279
This commit is contained in:
1 parent
b0ea3b1654
commit
f1163d5efb
8 files changed
+225
-53
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 350,
|
||||
"total": 113326,
|
||||
"total": 113317,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 314,
|
||||
@@ -297,7 +297,7 @@
|
||||
"lib/insights/comprehensive-generate.ts :: generateComprehensiveInsight": 876,
|
||||
"lib/insights/features.ts :: extractFeatures": 796,
|
||||
"lib/insights/mood-aggregates.ts :: fetchMoodAggregates": 246,
|
||||
"lib/insights/status-provider.ts :: runStatusCompletion": 224,
|
||||
"lib/insights/status-provider.ts :: runStatusCompletion": 215,
|
||||
"lib/integrations/connection-health-load.ts :: loadConnectionFacts": 227,
|
||||
"lib/integrations/status.ts :: recordSyncFailure": 292,
|
||||
"lib/jobs/apple-health-import-worker.ts :: handleAppleHealthImport": 300,
|
||||
|
||||
Reference in new issue
Block a user