-
Notifications
You must be signed in to change notification settings - Fork 3
SMS workflow reminder retry count tracking #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: sms-retry-base
Are you sure you want to change the base?
Conversation
* add retry count to workflow reminder * add logic to for retry count --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
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