fix: harden admin and CMPP delivery workflows
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "CmppDownstreamDelivery"
|
||||
ADD COLUMN "manualRetryCount" INTEGER NOT NULL DEFAULT 0,
|
||||
ADD COLUMN "lastRetriedAt" TIMESTAMP(3);
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
-- Downstream connection rows represent current live sessions only.
|
||||
-- Remove historical disconnected/timeout rows left by the previous persistence model.
|
||||
DELETE FROM "CmppDownstreamConnection"
|
||||
WHERE "status" <> 'connected';
|
||||
@@ -1197,6 +1197,8 @@ model CmppDownstreamDelivery {
|
||||
payload Json
|
||||
retryEnabled Boolean @default(true)
|
||||
retryCount Int @default(0)
|
||||
manualRetryCount Int @default(0)
|
||||
lastRetriedAt DateTime?
|
||||
nextRetryAt DateTime?
|
||||
sentAt DateTime?
|
||||
acknowledgedAt DateTime?
|
||||
|
||||
Reference in New Issue
Block a user