feat(server): set exiftool process count (#16388)
exiftool concurrency control
This commit is contained in:
@@ -89,6 +89,16 @@ export class MetadataService extends BaseService {
|
||||
await this.metadataRepository.teardown();
|
||||
}
|
||||
|
||||
@OnEvent({ name: 'config.init', workers: [ImmichWorker.MICROSERVICES] })
|
||||
onConfigInit({ newConfig }: ArgOf<'config.init'>) {
|
||||
this.metadataRepository.setMaxConcurrency(newConfig.job.metadataExtraction.concurrency);
|
||||
}
|
||||
|
||||
@OnEvent({ name: 'config.update', workers: [ImmichWorker.MICROSERVICES], server: true })
|
||||
onConfigUpdate({ newConfig }: ArgOf<'config.update'>) {
|
||||
this.metadataRepository.setMaxConcurrency(newConfig.job.metadataExtraction.concurrency);
|
||||
}
|
||||
|
||||
private async init() {
|
||||
this.logger.log('Initializing metadata service');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user