MCPcopy Index your code
hub / github.com/Unitech/pm2 / addProcs

Function addProcs

examples/sourcemap-auto-resolve/API.js:1522–1528  ·  view source on GitHub ↗
(proc, value, cb)

Source from the content-addressed store, hash-verified

1520 var that = this;
1521
1522 function addProcs(proc, value, cb) {
1523 (function ex(proc, number) {
1524 if (number-- === 0) return cb();
1525 Common.printOut(conf.PREFIX_MSG + 'Scaling up application');
1526 that.Client.executeRemote('duplicateProcessId', proc.pm2_env.pm_id, ex.bind(this, proc, number));
1527 })(proc, number);
1528 }
1529
1530 function rmProcs(procs, value, cb) {
1531 var i = 0;

Callers 3

scaleMethod · 0.85
scaleMethod · 0.85
API.jsFile · 0.85

Calls 2

cbFunction · 0.85
bindMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…