@trigger.dev/resend now retries failed email sends

This commit is contained in:
Eric Allam
2023-07-26 18:17:27 +01:00
parent f70f3a0a5d
commit de57592d79
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/resend": patch
---
Sending emails should retry if there are errors
+7
View File
@@ -37,6 +37,13 @@ export const sendEmail: AuthenticatedTask<
},
...subjectProperty,
],
retry: {
limit: 8,
factor: 1.8,
minTimeoutInMs: 500,
maxTimeoutInMs: 30000,
randomize: true,
},
};
},
};