do a better job of handling failed note embeddings

This commit is contained in:
perf3ct
2025-03-12 21:04:06 +00:00
parent 39d265a9fa
commit c914aaa4a8
3 changed files with 63 additions and 48 deletions

View File

@@ -28,7 +28,8 @@ CREATE TABLE IF NOT EXISTS "embedding_queue" (
"priority" INTEGER NOT NULL DEFAULT 0,
"attempts" INTEGER NOT NULL DEFAULT 0,
"lastAttempt" TEXT NULL,
"error" TEXT NULL
"error" TEXT NULL,
"failed" INTEGER NOT NULL DEFAULT 0
);
-- Table to store embedding provider configurations

View File

@@ -158,7 +158,8 @@ CREATE TABLE IF NOT EXISTS "embedding_queue" (
"priority" INTEGER NOT NULL DEFAULT 0,
"attempts" INTEGER NOT NULL DEFAULT 0,
"lastAttempt" TEXT NULL,
"error" TEXT NULL
"error" TEXT NULL,
"failed" INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS "embedding_providers" (