fix(alerts): удерживать неизвестные отправки без автоматического повтора

This commit is contained in:
Denozordec committed 2026-10-03 18:56:08 +07:00
1 parent 46be201d10
commit b1ad9515fa
9 files changed
+128 -133

No files matched your search

+1 -1
View File
@@ -606,7 +606,7 @@ export const alertOutbox = pgTable("alert_outbox", {
id: text("id").primaryKey(),
dedupeKey: text("dedupe_key").notNull(),
channel: text("channel", { enum: ["telegram"] }).notNull().default("telegram"),
status: text("status", { enum: ["pending", "sent", "failed"] }).notNull().default("pending"),
status: text("status", { enum: ["pending", "processing", "unknown", "sent", "failed"] }).notNull().default("pending"),
retryCount: integer("retry_count").notNull().default(0),
maxRetries: integer("max_retries").notNull().default(3),
nextAttemptAt: ts("next_attempt_at").notNull(),