Browse Source
Feature/expire cache entries immediately in case of errors in portfolio snapshot calculation (#4099)
* Expire cache entries immediately in case of errors
* Update changelog
pull/4090/head
Thomas Kaul
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.processor.ts
|
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
|
|
|
- Improved the labels of the assistant |
|
|
- Improved the labels of the assistant |
|
|
|
|
|
- Improved the caching of the portfolio snapshot in the portfolio calculator by expiring cache entries immediately in case of errors |
|
|
- Extracted the historical market data editor to a reusable component |
|
|
- Extracted the historical market data editor to a reusable component |
|
|
|
|
|
|
|
|
## 2.125.0 - 2024-11-30 |
|
|
## 2.125.0 - 2024-11-30 |
|
|
|
@ -86,7 +86,9 @@ export class PortfolioSnapshotProcessor { |
|
|
|
|
|
|
|
|
const expiration = addMilliseconds( |
|
|
const expiration = addMilliseconds( |
|
|
new Date(), |
|
|
new Date(), |
|
|
this.configurationService.get('CACHE_QUOTES_TTL') |
|
|
snapshot.errors.length === 0 |
|
|
|
|
|
? this.configurationService.get('CACHE_QUOTES_TTL') |
|
|
|
|
|
: 0 |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.redisCacheService.set( |
|
|
this.redisCacheService.set( |
|
|