From 1cc91aedfa8417f5326c41a4354843c160eb7693 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 24 May 2026 08:47:45 +0200 Subject: [PATCH] Revert "Task/configure queues to keep completed jobs (#6931)" (#6936) This reverts commit 7f76bcd2bf9bf14c7e941050888b370c372c7b11. --- CHANGELOG.md | 1 - libs/common/src/lib/config.ts | 20 ++++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 196e232aa..6a8418717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Configured the queues to keep the last `5000` completed jobs with a maximum age of one week - Removed the deprecated attributes (`assetClass`, `countries`, `currency`, `dataSource`, `name`, `sectors`, `symbol` and `url`) from the holdings of the public portfolio endpoint response - Upgraded `@keyv/redis` from version `4.4.0` to `5.1.6` diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.ts index 33118296f..113dffe4a 100644 --- a/libs/common/src/lib/config.ts +++ b/libs/common/src/lib/config.ts @@ -175,10 +175,7 @@ export const GATHER_ASSET_PROFILE_PROCESS_JOB_OPTIONS: JobOptions = { delay: ms('1 minute'), type: 'exponential' }, - removeOnComplete: { - age: ms('1 week') / 1000, - count: 5000 - } + removeOnComplete: true }; export const GATHER_HISTORICAL_MARKET_DATA_PROCESS_JOB_NAME = @@ -189,10 +186,7 @@ export const GATHER_HISTORICAL_MARKET_DATA_PROCESS_JOB_OPTIONS: JobOptions = { delay: ms('1 minute'), type: 'exponential' }, - removeOnComplete: { - age: ms('1 week') / 1000, - count: 5000 - } + removeOnComplete: true }; export const GATHER_STATISTICS_PROCESS_JOB_OPTIONS: JobOptions = { @@ -201,10 +195,7 @@ export const GATHER_STATISTICS_PROCESS_JOB_OPTIONS: JobOptions = { delay: ms('1 minute'), type: 'exponential' }, - removeOnComplete: { - age: ms('1 week') / 1000, - count: 5000 - } + removeOnComplete: true }; export const GATHER_STATISTICS_DOCKER_HUB_PULLS_PROCESS_JOB_NAME = @@ -227,10 +218,7 @@ export const INVESTMENT_ACTIVITY_TYPES = [ export const PORTFOLIO_SNAPSHOT_PROCESS_JOB_NAME = 'PORTFOLIO'; export const PORTFOLIO_SNAPSHOT_PROCESS_JOB_OPTIONS: JobOptions = { - removeOnComplete: { - age: ms('1 week') / 1000, - count: 5000 - } + removeOnComplete: true }; export const HEADER_KEY_IMPERSONATION = 'Impersonation-Id';