Skip to content

Commit

Permalink
increase timeout, closes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Sep 14, 2018
1 parent db5242e commit 1c09f34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions src/ExifTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1c09f34

Please sign in to comment.