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