Scheduling infrastructure for absolutely everyone.
fix: Don't continue retrying SMS reminders infinitely (#22251)
Keith Williams20434856e9b7
diff --git a/packages/features/ee/workflows/api/scheduleSMSReminders.ts b/packages/features/ee/workflows/api/scheduleSMSReminders.tsindex a399f94ee99..68515094904 100644--- a/packages/features/ee/workflows/api/scheduleSMSReminders.ts+++ b/packages/features/ee/workflows/api/scheduleSMSReminders.ts@@ -37,6 +37,9 @@ export async function handler(req: NextRequest) {scheduledDate: {lte: dayjs().add(2, "hour").toISOString(),},+ retryCount: {+ lt: 3, // Don't continue retrying if it's already failed 3 times+ },},select: {...select,