create-prenta 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-actuate-cms
|
|
2
2
|
|
|
3
|
+
## 1.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 674bf6c: Add a job queue with retries and a dead letter so SEO audit, content-health, and batch AI run in short worker slices instead of inside the 30-second cron request. Progress is listed in the admin Jobs view. New projects scaffolded with create-prenta include the jobs table.
|
|
8
|
+
|
|
3
9
|
## 1.6.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
-- Job queue for SEO audit, content health, and batch AI (#444).
|
|
2
|
+
|
|
3
|
+
CREATE TABLE "prenta_jobs" (
|
|
4
|
+
"id" TEXT NOT NULL,
|
|
5
|
+
"type" TEXT NOT NULL,
|
|
6
|
+
"payload" JSONB NOT NULL,
|
|
7
|
+
"status" TEXT NOT NULL,
|
|
8
|
+
"attempts" INTEGER NOT NULL DEFAULT 0,
|
|
9
|
+
"maxAttempts" INTEGER NOT NULL DEFAULT 3,
|
|
10
|
+
"runAt" TIMESTAMP(3) NOT NULL,
|
|
11
|
+
"lockedAt" TIMESTAMP(3),
|
|
12
|
+
"lastError" TEXT,
|
|
13
|
+
"progress" JSONB NOT NULL,
|
|
14
|
+
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
15
|
+
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
16
|
+
|
|
17
|
+
CONSTRAINT "prenta_jobs_pkey" PRIMARY KEY ("id")
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
CREATE INDEX "prenta_jobs_status_runAt_idx" ON "prenta_jobs"("status", "runAt");
|
|
@@ -1110,3 +1110,25 @@ model DocumentNotification {
|
|
|
1110
1110
|
@@index([commentId])
|
|
1111
1111
|
@@map("prenta_document_notifications")
|
|
1112
1112
|
}
|
|
1113
|
+
|
|
1114
|
+
/// Background work for SEO audit, content health, and batch AI.
|
|
1115
|
+
/// `status` is queued | running | succeeded | dead. A dead row is the
|
|
1116
|
+
/// dead-letter: it is not claimed again. Ids are minted by the queue so a
|
|
1117
|
+
/// stub database that ignores `create` still returns a job id.
|
|
1118
|
+
model Job {
|
|
1119
|
+
id String @id
|
|
1120
|
+
type String
|
|
1121
|
+
payload Json
|
|
1122
|
+
status String
|
|
1123
|
+
attempts Int @default(0)
|
|
1124
|
+
maxAttempts Int @default(3)
|
|
1125
|
+
runAt DateTime
|
|
1126
|
+
lockedAt DateTime?
|
|
1127
|
+
lastError String?
|
|
1128
|
+
progress Json
|
|
1129
|
+
createdAt DateTime @default(now())
|
|
1130
|
+
updatedAt DateTime @updatedAt
|
|
1131
|
+
|
|
1132
|
+
@@index([status, runAt])
|
|
1133
|
+
@@map("prenta_jobs")
|
|
1134
|
+
}
|