| 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) { |