From d99ed6b636eca5d7ba38f19337f447aa0fbeebb9 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Tue, 2 Feb 2016 10:05:43 -0800 Subject: [PATCH] Add quit option to Node.js worker --- src/node/performance/worker_service_impl.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node/performance/worker_service_impl.js b/src/node/performance/worker_service_impl.js index 99ae32127e7..a5cdc1cbf61 100644 --- a/src/node/performance/worker_service_impl.js +++ b/src/node/performance/worker_service_impl.js @@ -36,6 +36,11 @@ var BenchmarkClient = require('./benchmark_client'); var BenchmarkServer = require('./benchmark_server'); +exports.quitWorker = function quitWorker(call, callback) { + callback(null, {}); + process.exit(0); +} + exports.runClient = function runClient(call) { var client; call.on('data', function(request) {