From 08e0cd75c6133bc9ae0c6bea86f5e10032eb47f5 Mon Sep 17 00:00:00 2001 From: alexeh Date: Sat, 14 Dec 2024 05:38:01 +0100 Subject: [PATCH] force remove queue jobs on fail and complete --- api/src/modules/import-data/import-data.module.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/modules/import-data/import-data.module.ts b/api/src/modules/import-data/import-data.module.ts index fe01a8744..6c62a9537 100644 --- a/api/src/modules/import-data/import-data.module.ts +++ b/api/src/modules/import-data/import-data.module.ts @@ -36,6 +36,10 @@ import { SourcingDataDbCleaner } from 'modules/import-data/sourcing-data/sourcin }), BullModule.registerQueue({ name: importQueueName, + defaultJobOptions: { + removeOnComplete: true, + removeOnFail: true, + }, }), BullModule.registerQueue({ name: 'eudr',