Feature/improve handling of jobs (#1864)

* Improve handling of jobs
  * Remove jobs on complete
  * Refactor jobs removal

* Update changelog
This commit is contained in:
Thomas Kaul
2023-04-16 19:56:19 +02:00
committed by GitHub
parent 947460abdd
commit 654446f068
3 changed files with 30 additions and 27 deletions

View File

@@ -49,9 +49,7 @@ export const GATHER_ASSET_PROFILE_PROCESS_OPTIONS: JobOptions = {
type: 'exponential'
},
priority: DATA_GATHERING_QUEUE_PRIORITY_HIGH,
removeOnComplete: {
age: ms('2 weeks') / 1000
}
removeOnComplete: true
};
export const GATHER_HISTORICAL_MARKET_DATA_PROCESS =
'GATHER_HISTORICAL_MARKET_DATA';
@@ -62,9 +60,7 @@ export const GATHER_HISTORICAL_MARKET_DATA_PROCESS_OPTIONS: JobOptions = {
type: 'exponential'
},
priority: DATA_GATHERING_QUEUE_PRIORITY_LOW,
removeOnComplete: {
age: ms('2 weeks') / 1000
}
removeOnComplete: true
};
export const HEADER_KEY_IMPERSONATION = 'Impersonation-Id';