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

Method processIds

lib/API.js:347–358  ·  view source on GitHub ↗
(ids, cb)

Source from the content-addressed store, hash-verified

345 var that = this;
346
347 function processIds(ids, cb) {
348 eachLimit(ids, conf.CONCURRENT_ACTIONS, function(id, next) {
349 that.Client.executeRemote('resetMetaProcessId', id, function(err, res) {
350 if (err) console.error(err);
351 Common.printOut(conf.PREFIX_MSG + 'Resetting meta for process id %d', id);
352 return next();
353 });
354 }, function(err) {
355 if (err) return cb(Common.retErr(err));
356 return cb ? cb(null, {success:true}) : that.speedList();
357 });
358 }
359
360 if (process_name == 'all') {
361 that.Client.getAllProcessId(function(err, ids) {

Callers

nothing calls this directly

Calls 4

cbFunction · 0.85
speedListMethod · 0.80
exitCliMethod · 0.80
nextFunction · 0.70

Tested by

no test coverage detected