batch-cluster
Advanced tools
Changelog
v1.6.0
taskkill
on windows and kill -9
on other unix-like platforms if they don't terminate after sending the
exitCommand
, closing stdin
, and sending the proc a SIGTERM
. Added a test
harness to exercise.mocha
tests don't require the --exit
hack anymore 🎉Changelog
v1.5.0
.running()
works correctly for PIDs with different owners now.yarn upgrade --latest
Changelog
v1.4.0
maxProcs
wasn't always utilized by onIdle
, which meant in
certain circumstances, only 1 child process would be servicing pending
requests. Added breaking tests and fixed impl.Changelog
v1.3.0
kill(0)
calls to verify the child
processes are still running work across different node version and OSesBatchProcess
(whose API should not be accessed
directly by consumers, so the major version remains at 1)Changelog
v1.2.0
.end()
BatchCluster
to BatchProcess
Changelog
v1.1.0
BatchCluster
now has a force-shutdown exit
handler to accompany the
graceful-shutdown beforeExit
handler. For reference, from the
Node docs:The 'beforeExit' event is not emitted for conditions causing explicit termination, such as calling process.exit() or uncaught exceptions.
Rate
's time decay in the interests of simplicity