mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
Merge remote-tracking branch 'origin/release/v1.46.0' into fix/end-medication-contributor-base
# Conflicts: # src/__tests__/baselines/source-file-lines.json # src/__tests__/baselines/source-function-lines.json
This commit is contained in:
commit
a35ff5f5ea
47 files changed
+2606
-447
No files matched your search
@@ -0,0 +1,11 @@
|
||||
-- Count the generations in a row that ended without a note, per status note.
|
||||
--
|
||||
-- A note whose generation failed opened a fixed five-minute negative window.
|
||||
-- A model that never answers kept failing every five minutes per note, and a
|
||||
-- note re-selected by the next data sync ignored the window altogether. The
|
||||
-- streak sets the next window: five minutes, doubling per failure in a row,
|
||||
-- up to two hours. A written or re-dated note resets it to zero.
|
||||
--
|
||||
-- Existing rows start at zero, which is the five-minute window they had.
|
||||
ALTER TABLE "insight_status_caches"
|
||||
ADD COLUMN IF NOT EXISTS "failure_streak" INTEGER NOT NULL DEFAULT 0;
|
||||
@@ -7849,6 +7849,9 @@ model InsightStatusCache {
|
||||
/// Why the last generation served the deterministic line instead of a note:
|
||||
/// `timeout` | `error` | `screened`. Set together with `retryAt`.
|
||||
negativeReason String? @map("negative_reason")
|
||||
/// Generations in a row that ended without a note; sets the length of the
|
||||
/// next negative-cache window. Reset to 0 when a note is written or re-dated.
|
||||
failureStreak Int @default(0) @map("failure_streak")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
|
||||
|
||||
Reference in new issue
Block a user