Skip to content

Commit

Permalink
Update parsing of parameters
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <jmazane@amazon.com>
  • Loading branch information
jmazanec15 committed Apr 18, 2022
1 parent 313e917 commit fe86040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/osb/extensions/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ class BulkVectorsFromDataSetRunner:

async def __call__(self, opensearch, params):
size = parse_int_parameter("size", params)
retries = parse_int_parameter("retries", params, 0) + 1

for _ in range(params["retries"] + 1):
for _ in range(retries):
try:
await opensearch.bulk(
body=params["body"],
Expand Down

0 comments on commit fe86040

Please sign in to comment.