From 0f9d142afed4fa8be9d99516763c8fe1f6093574 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 12 Jun 2022 17:39:55 +0200 Subject: [PATCH] Feature/decrease number of attempts of queue jobs (#1006) * Decrease number of attempts * Update changelog --- CHANGELOG.md | 1 + libs/common/src/lib/config.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a195a289..b40c3e3af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Decreased the number of attempts of queue jobs from `20` to `10` (fail earlier) - Improved the message for data provider errors in the client - Changed the label from _Balance_ to _Cash Balance_ in the account dialog diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.ts index e8fc6561b..9344b6ec6 100644 --- a/libs/common/src/lib/config.ts +++ b/libs/common/src/lib/config.ts @@ -52,7 +52,7 @@ export const DEFAULT_DATE_FORMAT_MONTH_YEAR = 'MMM yyyy'; export const GATHER_ASSET_PROFILE_PROCESS = 'GATHER_ASSET_PROFILE'; export const GATHER_ASSET_PROFILE_PROCESS_OPTIONS: JobOptions = { - attempts: 20, + attempts: 10, backoff: { delay: ms('1 minute'), type: 'exponential' @@ -65,7 +65,7 @@ export const GATHER_ASSET_PROFILE_PROCESS_OPTIONS: JobOptions = { export const GATHER_HISTORICAL_MARKET_DATA_PROCESS = 'GATHER_HISTORICAL_MARKET_DATA'; export const GATHER_HISTORICAL_MARKET_DATA_PROCESS_OPTIONS: JobOptions = { - attempts: 20, + attempts: 10, backoff: { delay: ms('1 minute'), type: 'exponential'