mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): reverse geocoding crash loop (#2489)
This commit is contained in:
parent
f984be8ea0
commit
e028cf9002
5 changed files with 45 additions and 18 deletions
|
|
@ -46,16 +46,18 @@ export class MetadataExtractionProcessor {
|
|||
) {
|
||||
this.assetCore = new AssetCore(assetRepository, jobRepository);
|
||||
this.reverseGeocodingEnabled = !configService.get('DISABLE_REVERSE_GEOCODING');
|
||||
this.init();
|
||||
}
|
||||
|
||||
private async init() {
|
||||
async init(skipCache = false) {
|
||||
this.logger.warn(`Reverse geocoding is ${this.reverseGeocodingEnabled ? 'enabled' : 'disabled'}`);
|
||||
if (!this.reverseGeocodingEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
if (!skipCache) {
|
||||
await this.geocodingRepository.deleteCache();
|
||||
}
|
||||
this.logger.log('Initializing Reverse Geocoding');
|
||||
|
||||
await this.jobRepository.pause(QueueName.METADATA_EXTRACTION);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue