MCPcopy
hub / github.com/Unitech/pm2 / processIds

Function processIds

examples/sourcemap-auto-resolve/API.js:320–331  ·  view source on GitHub ↗
(ids, cb)

Source from the content-addressed store, hash-verified

318 var that = this;
319
320 function processIds(ids, cb) {
321 eachLimit(ids, conf.CONCURRENT_ACTIONS, function(id, next) {
322 that.Client.executeRemote('resetMetaProcessId', id, function(err, res) {
323 if (err) console.error(err);
324 Common.printOut(conf.PREFIX_MSG + 'Resetting meta for process id %d', id);
325 return next();
326 });
327 }, function(err) {
328 if (err) return cb(Common.retErr(err));
329 return cb ? cb(null, {success:true}) : that.speedList();
330 });
331 }
332
333 if (process_name == 'all') {
334 that.Client.getAllProcessId(function(err, ids) {

Callers 4

resetMethod · 0.85
reoperateMethod · 0.85
_operateMethod · 0.85
API.jsFile · 0.85

Calls 4

cbFunction · 0.85
speedListMethod · 0.80
exitCliMethod · 0.80
nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…