From 17c4971faba80986f4b00a662d2eba5077075da6 Mon Sep 17 00:00:00 2001 From: Clay Danford Date: Fri, 25 Sep 2020 21:25:16 -0500 Subject: [PATCH 1/3] feat: support parallel invocation in powertuning --- README.md | 2 ++ src/commands/powertune-lambda.js | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3ec2c8..8670f37 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,8 @@ OPTIONS value --httpProxy=httpProxy URL of the http/https proxy (when running in a corporate network) + + --parallelInvocation run invocations in parallel ``` _See code: [src/commands/powertune-lambda.js](https://github.com/lumigo-io/lumigo-cli/blob/v0.40.1/src/commands/powertune-lambda.js)_ diff --git a/src/commands/powertune-lambda.js b/src/commands/powertune-lambda.js index e1b2b41..abb2b5e 100644 --- a/src/commands/powertune-lambda.js +++ b/src/commands/powertune-lambda.js @@ -30,7 +30,8 @@ class PowertuneLambdaCommand extends Command { noVisualization, autoOptimize, autoOptimizeAlias, - httpProxy + httpProxy, + parallelInvocation, } = flags; global.region = region; @@ -88,7 +89,7 @@ class PowertuneLambdaCommand extends Command { lambdaARN: lambdaArn, num: invocations, payload: payload, - parallelInvocation: false, + parallelInvocation, strategy, balancedWeight, powerValues, @@ -217,7 +218,12 @@ PowertuneLambdaCommand.flags = { httpProxy: flags.string({ description: "URL of the http/https proxy (when running in a corporate network)", required: false - }) + }), + parallelInvocation: flags.boolean({ + description: "run invocations in parallel", + default: false, + required: false + }), }; const openVisualization = url => { From 24e483fd5ca2e2bf96b86a2435d9e45f99b7c45c Mon Sep 17 00:00:00 2001 From: Efi Merdler-Kravitz <43570637+efimk-lu@users.noreply.github.com> Date: Sat, 26 Sep 2020 19:35:49 +0300 Subject: [PATCH 2/3] Update README.md To allow rebuilding From c1dd634724d35ce6aa998b6d8df3558aadd37852 Mon Sep 17 00:00:00 2001 From: Clay Danford Date: Mon, 28 Sep 2020 09:45:30 -0500 Subject: [PATCH 3/3] feat: resolve prettier issues --- src/commands/powertune-lambda.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/powertune-lambda.js b/src/commands/powertune-lambda.js index abb2b5e..86dd3fd 100644 --- a/src/commands/powertune-lambda.js +++ b/src/commands/powertune-lambda.js @@ -31,7 +31,7 @@ class PowertuneLambdaCommand extends Command { autoOptimize, autoOptimizeAlias, httpProxy, - parallelInvocation, + parallelInvocation } = flags; global.region = region; @@ -223,7 +223,7 @@ PowertuneLambdaCommand.flags = { description: "run invocations in parallel", default: false, required: false - }), + }) }; const openVisualization = url => {