Fixes: Redis keys related to queue jobs should be removed after completion

This commit is contained in:
Tom Moor
2018-11-17 16:09:42 -08:00
parent 11a411447c
commit d3834d2dc5
5 changed files with 38 additions and 21 deletions

View File

@ -138,6 +138,7 @@ export const sendEmail = (type: Emails, to: string, options?: Object = {}) => {
},
{
attempts: 5,
removeOnComplete: true,
backoff: {
type: 'exponential',
delay: 60 * 1000,