SMS workflow reminder retry count tracking#8
Conversation
* add retry count to workflow reminder * add logic to for retry count --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
PR #8
PR Type
Enhancement, Bug fix
Description
Add
retryCountfield toWorkflowRemindermodel for tracking SMS retry attemptsImplement retry logic that increments count on scheduling failures
Delete reminders exceeding maximum retry attempts (retryCount > 1)
Include
retryCountin SMS reminder queries and update operationsDiagram Walkthrough
File Walkthrough
scheduleSMSReminders.ts
Add retry count tracking and increment logicpackages/features/ee/workflows/api/scheduleSMSReminders.ts
retryCount > 1inaddition to past-dated reminders
retryCountfield to the select clause when fetching unscheduledreminders
handling paths
retryCountin the reminder objectschema.prisma
Add retryCount field to schemapackages/prisma/schema.prisma
retryCountinteger field toWorkflowRemindermodel with defaultvalue of 0
migration.sql
Database migration for retryCount columnpackages/prisma/migrations/20240508134359_add_retry_count_to_workflow_reminder/migration.sql
retryCountcolumn toWorkflowRemindertable with default value 0