feat(server): set exiftool process count (#16388)

exiftool concurrency control
This commit is contained in:
Mert
2025-02-27 17:24:40 +03:00
committed by GitHub
parent fb907d707d
commit 6050485ad8
4 changed files with 37 additions and 0 deletions

View File

@@ -85,6 +85,10 @@ export class MetadataRepository {
this.logger.setContext(MetadataRepository.name);
}
setMaxConcurrency(concurrency: number) {
this.exiftool.batchCluster.setMaxProcs(concurrency);
}
async teardown() {
await this.exiftool.end();
}