From 544b5ba838080003e7404fe3133de1381a0c246b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 19 Mar 2022 19:34:04 +0900 Subject: [PATCH] perf(server): reduce memory usage of redis --- packages/backend/src/queue/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/queue/index.ts b/packages/backend/src/queue/index.ts index 50bcccbb7f..b679a552b2 100644 --- a/packages/backend/src/queue/index.ts +++ b/packages/backend/src/queue/index.ts @@ -263,6 +263,7 @@ export default function() { systemQueue.add('tickCharts', { }, { repeat: { cron: '55 * * * *' }, + removeOnComplete: true, }); systemQueue.add('resyncCharts', { @@ -278,6 +279,7 @@ export default function() { systemQueue.add('checkExpiredMutings', { }, { repeat: { cron: '*/5 * * * *' }, + removeOnComplete: true, }); processSystemQueue(systemQueue);