fix: harden admin and CMPP delivery workflows

This commit is contained in:
hectorzhao
2026-07-15 11:21:02 +08:00
parent 00b6d95752
commit e47432bc9d
34 changed files with 878 additions and 226 deletions
@@ -0,0 +1,3 @@
ALTER TABLE "CmppDownstreamDelivery"
ADD COLUMN "manualRetryCount" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "lastRetriedAt" TIMESTAMP(3);
@@ -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';