Memory issues can occur when services retrieve dependencies in parallel. Checking dependencies on every start needlessly slows the operation. The NPM lock files are updated on start, which is undesirable.
What
Make dependency retrieval serial
Extract dependency retrieval to bin/init
Keep bin/init idempotent
Replace bin/clean with bin/reset
Remove unneeded depends_on definitions
Give Hubs Client enough time to build before reporting unhealthy
Allow scripts to be triggered from other directories
Allow bin/observe to be launched in an existing tmux session
Why
Memory issues can occur when services retrieve dependencies in parallel. Checking dependencies on every start needlessly slows the operation. The NPM lock files are updated on start, which is undesirable.
What
bin/init
bin/init
idempotentbin/clean
withbin/reset
depends_on
definitionsbin/observe
to be launched in an existing tmux session