diff --git a/CHANGELOG.md b/CHANGELOG.md index 07beebfa..9fdbb569 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,11 @@ vendored versions of ExifTool match the version they vendor. ## Version history +### v6.2.2 + +- 🐞 Increased default task timeout to 20s to resolve + [#34](https://github.com/mceachen/exiftool-vendored.js/issues/34) + ### v6.2.1 - 📦 Pull in batch-cluster 4.3.0, which exposes `taskData` events. diff --git a/src/ExifTool.ts b/src/ExifTool.ts index 294d001d..9f3cddd4 100644 --- a/src/ExifTool.ts +++ b/src/ExifTool.ts @@ -67,7 +67,9 @@ export interface ShortcutTags { AllDates?: string } -export type WriteTags = { [K in keyof (Tags & ShortcutTags)]: string | number | (string | number)[] } +export type WriteTags = { + [K in keyof (Tags & ShortcutTags)]: string | number | (string | number)[] +} export const DefaultMaxProcs = Math.max(1, Math.floor(_os.cpus().length / 4)) @@ -160,7 +162,7 @@ export const DefaultExifToolOptions: Omit< maxProcs: DefaultMaxProcs, maxTasksPerProcess: 500, spawnTimeoutMillis: 30000, - taskTimeoutMillis: 10000, + taskTimeoutMillis: 20000, // see https://github.com/mceachen/exiftool-vendored.js/issues/34 onIdleIntervalMillis: 2000, taskRetries: 1, exiftoolPath: DefaultExifToolPath,