Skip to content

Commit

Permalink
new maxIdleMsPerProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Apr 11, 2020
1 parent 5961c34 commit e219885
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ vendored versions of ExifTool match the version they vendor.

## Version history

### v11.1.0

- 📦 Updated dependencies, including `batch-cluster`. The new
`maxIdleMsPerProcess` option shuts down ExifTool processes automatically if
they are idle for longer than `maxIdleMsPerProcess` milliseconds. New
processes are forked when needed.

### v11.0.0

- 💔 **Breaking change:** A number of tags were removed from `Tags` because we
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.json

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/interfaces/exiftooloptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ <h3>Properties</h3>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="exiftooloptions.html#exitcommand" class="tsd-kind-icon">exit<wbr>Command</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="exiftooloptions.html#fail" class="tsd-kind-icon">fail</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exiftooloptions.html#ignoreshebang" class="tsd-kind-icon">ignore<wbr>Shebang</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="exiftooloptions.html#maxidlemsperprocess" class="tsd-kind-icon">max<wbr>Idle<wbr>MsPer<wbr>Process</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="exiftooloptions.html#maxprocagemillis" class="tsd-kind-icon">max<wbr>Proc<wbr>Age<wbr>Millis</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite"><a href="exiftooloptions.html#maxprocs" class="tsd-kind-icon">max<wbr>Procs</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="exiftooloptions.html#maxreasonableprocessfailuresperminute" class="tsd-kind-icon">max<wbr>Reasonable<wbr>Process<wbr>Failures<wbr>Per<wbr>Minute</a></li>
Expand Down Expand Up @@ -262,6 +263,25 @@ <h3>ignore<wbr>Shebang</h3>
<code>perl</code>).</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="maxidlemsperprocess" class="tsd-anchor"></a>
<h3>max<wbr>Idle<wbr>MsPer<wbr>Process</h3>
<div class="tsd-signature tsd-kind-icon">max<wbr>Idle<wbr>MsPer<wbr>Process<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<p>Inherited from <a href="exiftooloptions.html">ExifToolOptions</a>.<a href="exiftooloptions.html#maxidlemsperprocess">maxIdleMsPerProcess</a></p>
<ul>
<li>Defined in node_modules/batch-cluster/dist/BatchClusterOptions.d.ts:122</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>If a child process is idle for more than this value (in milliseconds), shut
it down to reduce system resource consumption.</p>
</div>
<p>A value of ~10 seconds to a couple minutes would be reasonable. Set this to
0 to disable this feature.</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a name="maxprocagemillis" class="tsd-anchor"></a>
<h3>max<wbr>Proc<wbr>Age<wbr>Millis</h3>
Expand Down Expand Up @@ -582,6 +602,9 @@ <h3>version<wbr>Command</h3>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="exiftooloptions.html#ignoreshebang" class="tsd-kind-icon">ignore<wbr>Shebang</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="exiftooloptions.html#maxidlemsperprocess" class="tsd-kind-icon">max<wbr>Idle<wbr>MsPer<wbr>Process</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
<a href="exiftooloptions.html#maxprocagemillis" class="tsd-kind-icon">max<wbr>Proc<wbr>Age<wbr>Millis</a>
</li>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@types/globule": "^1.1.3",
"@types/luxon": "^1.22.0",
"@types/mocha": "^7.0.2",
"@types/node": "^13.11.0",
"@types/node": "^13.11.1",
"@types/progress": "^2.0.3",
"@types/rimraf": "^3.0.0",
"@types/tar-fs": "^1.16.3",
Expand All @@ -92,7 +92,7 @@
"fs-extra": "^9.0.0",
"globule": "^1.3.1",
"mocha": "^7.1.1",
"npm-check-updates": "^4.1.1",
"npm-check-updates": "^4.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"progress": "^2.0.3",
Expand All @@ -107,7 +107,7 @@
"xpath": "^0.0.27"
},
"dependencies": {
"batch-cluster": "^5.9.5",
"batch-cluster": "^5.10.0",
"luxon": "^1.23.0",
"tz-lookup": "^6.1.25"
},
Expand Down
30 changes: 20 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,16 @@
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-7.0.2.tgz#b17f16cf933597e10d6d78eae3251e692ce8b0ce"
integrity sha512-ZvO2tAcjmMi8V/5Z3JsyofMe3hasRcaw88cto5etSVMwVQfeivGAlEYmaQgceUSVYFofVjT+ioHsATjdWcFt1w==

"@types/node@*", "@types/node@^13.11.0":
"@types/node@*":
version "13.11.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.11.0.tgz#390ea202539c61c8fa6ba4428b57e05bc36dc47b"
integrity sha512-uM4mnmsIIPK/yeO+42F2RQhGUIs39K2RFmugcJANppXe6J1nvH87PvzPZYpza7Xhhs8Yn9yIAVdLZ84z61+0xQ==

"@types/node@^13.11.1":
version "13.11.1"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.11.1.tgz#49a2a83df9d26daacead30d0ccc8762b128d53c7"
integrity sha512-eWQGP3qtxwL8FGneRrC5DwrJLGN4/dH1clNTuLfN81HCrxVtxRjygDTUoZJ5ASlDEeo0ppYFQjQIlXhtXpOn6g==

"@types/progress@^2.0.3":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@types/progress/-/progress-2.0.3.tgz#7ccbd9c6d4d601319126c469e73b5bb90dfc8ccc"
Expand Down Expand Up @@ -458,10 +463,10 @@ base64-js@^1.0.2:
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1"
integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==

batch-cluster@^5.9.5:
version "5.9.5"
resolved "https://registry.yarnpkg.com/batch-cluster/-/batch-cluster-5.9.5.tgz#4bc85448e1394b1b5a8384cd1d6468ac52855997"
integrity sha512-0Ih+u80YTVnbhXBdqhdReb5/hTzSgo4ITlkwkmvVZlQw/C/pri5BcTlJawnXiXY1h+e9aIVUzzp3NjZN80qH8A==
batch-cluster@^5.10.0:
version "5.10.0"
resolved "https://registry.yarnpkg.com/batch-cluster/-/batch-cluster-5.10.0.tgz#54af93b6c77d7a20724794f0eaf1ed35b0675696"
integrity sha512-wE6v+52qDM5mI95ap/NSyOklKldbLy+dfN3A5mJwiF76qMozAfH3ydR7pqEkPUHlqnCmKfJl4bGcUyq5WRsBnQ==

binary-extensions@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -2430,10 +2435,10 @@ npm-bundled@^1.1.1:
dependencies:
npm-normalize-package-bin "^1.0.1"

npm-check-updates@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-4.1.1.tgz#2c18837f43161fa63d328e78ce905133b8da5ac0"
integrity sha512-O1LuwX8hB06+fCEHJ4cOUB87fPU44KDAo0X5RXgGsgU0xaQRqaW3rZtdcuFC7nOnJYVafn93RTl9HY4cq72C8g==
npm-check-updates@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/npm-check-updates/-/npm-check-updates-4.1.2.tgz#700f52b17999aa914a5fbdd9c1a0a51d093d89c0"
integrity sha512-CRO20Z12fygKL/ow4j4pnpyxevda/PuFbWpsF5E9sFW0B+M3d32A1dD+fTHLDjgderhKXr64W8qQ6M/Gq8OLiw==
dependencies:
chalk "^3.0.0"
cint "^8.2.1"
Expand All @@ -2452,7 +2457,7 @@ npm-check-updates@^4.1.1:
prompts "^2.3.2"
rc-config-loader "^3.0.0"
requireg "^0.2.2"
semver "^7.1.3"
semver "^7.2.1"
semver-utils "^1.1.4"
spawn-please "^0.3.0"
update-notifier "^4.1.0"
Expand Down Expand Up @@ -3190,6 +3195,11 @@ semver@^7.0.0, semver@^7.1.1, semver@^7.1.3:
resolved "https://registry.yarnpkg.com/semver/-/semver-7.1.3.tgz#e4345ce73071c53f336445cfc19efb1c311df2a6"
integrity sha512-ekM0zfiA9SCBlsKa2X1hxyxiI4L3B6EbVJkkdgQXnSEEaHlGdvyodMruTiulSRWMMB4NeIuYNMC9rTKTz97GxA==

semver@^7.2.1:
version "7.2.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.2.2.tgz#d01432d74ed3010a20ffaf909d63a691520521cd"
integrity sha512-Zo84u6o2PebMSK3zjJ6Zp5wi8VnQZnEaCP13Ul/lt1ANsLACxnJxq4EEm1PY94/por1Hm9+7xpIswdS5AkieMA==

serve-handler@6.1.2:
version "6.1.2"
resolved "https://registry.yarnpkg.com/serve-handler/-/serve-handler-6.1.2.tgz#f05b0421a313fff2d257838cba00cbcc512cd2b6"
Expand Down

0 comments on commit e219885

Please sign in to comment.