Skip to content

Commit

Permalink
Merge pull request #106 from claydanford/master
Browse files Browse the repository at this point in the history
feat: support parallel invocation in powertuning
  • Loading branch information
efimk-lu authored Sep 28, 2020
2 parents 0ecea22 + c1dd634 commit 2d83fc6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_
Expand Down
10 changes: 8 additions & 2 deletions src/commands/powertune-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class PowertuneLambdaCommand extends Command {
noVisualization,
autoOptimize,
autoOptimizeAlias,
httpProxy
httpProxy,
parallelInvocation
} = flags;

global.region = region;
Expand Down Expand Up @@ -88,7 +89,7 @@ class PowertuneLambdaCommand extends Command {
lambdaARN: lambdaArn,
num: invocations,
payload: payload,
parallelInvocation: false,
parallelInvocation,
strategy,
balancedWeight,
powerValues,
Expand Down Expand Up @@ -217,6 +218,11 @@ 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
})
};

Expand Down

0 comments on commit 2d83fc6

Please sign in to comment.