Skip to content

Commit 14d2fbe

Browse files
[fix] Fixed missing teardown steps between benchmarks (#20)
1 parent cddeb15 commit 14d2fbe

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.23"
3+
version = "0.1.24"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>"]
66
readme = "README.md"

redisbench_admin/run/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ def run_command_logic(args):
145145
options, input_file, workers,
146146
pipeline, oss_cluster_mode, max_rps, requests)
147147

148+
if benchmark_repetitions_require_teardown is True or repetition == args.repetitions:
149+
print("Running tear down steps...")
150+
run_setup_commands(args, "tear down", benchmark_config["teardown"]["commands"], oss_cluster_mode)
151+
148152
progress.update()
149153
end_time = dt.datetime.now()
150154
progress.close()

0 commit comments

Comments
 (0)