New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

batch-cluster

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-cluster

Manage a cluster of child processes

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19K
decreased by-1.75%
Maintainers
1
Weekly downloads
 
Created
Source

batch-cluster

Support external batch-mode tools within Node.js

npm version Build status Build status

Many command line tools, like ExifTool and GraphicsMagick, support running arbitrary commands via a "batch mode," which amortizes process spin-up costs over several, serial request/response pairs, sent via stdin/stdout.

Spinning up N of these child processes on multiprocessor machines gives you parallelism.

Distributing requests to these processes, monitoring and restarting processes as needed, and shutting them down appropriately, is what this module gives you.

This package powers exiftool-vendored.

Changelog

v1.0.0

  • ✨ Integration tests now throw deterministically random errors to simulate flaky child procs, and ensure retries and disaster recovery work as expected.
  • ✨ If the processFactory or versionCommand fails more often than a given rate, BatchCluster will shut down and raise exceptions to subsequent enqueueTask callers, rather than try forever to spin up processes that are most likely misconfigured.
  • ✨ Given the proliferation of construction options, those options are now sanity-checked at construction time, and an error will be raised whose message contains all incorrect option values.

v0.0.2

  • ✨ Added support and explicit tests for CR LF, CR, and LF encoded streams from exec'ed processes
  • ✨ child processes are ended after maxProcAgeMillis, and restarted as needed
  • 🐞 BatchCluster now practices good listener hygene for process.beforeExit

v0.0.1

Versioning

The MAJOR or API version is incremented for

  • 💔 Non-backwards-compatible API changes

The MINOR or UPDATE version is incremented for

  • ✨ Backwards-compatible features

The PATCH version is incremented for

  • 🐞 Backwards-compatible bug fixes
  • 📦 Minor packaging changes

FAQs

Package last updated on 04 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc