Skip to content

Commit

Permalink
[fix] Fixed missing teardown steps between benchmarks (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 authored Oct 11, 2020
1 parent cddeb15 commit 14d2fbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redisbench-admin"
version = "0.1.23"
version = "0.1.24"
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
authors = ["filipecosta90 <filipecosta.90@gmail.com>"]
readme = "README.md"
Expand Down
4 changes: 4 additions & 0 deletions redisbench_admin/run/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def run_command_logic(args):
options, input_file, workers,
pipeline, oss_cluster_mode, max_rps, requests)

if benchmark_repetitions_require_teardown is True or repetition == args.repetitions:
print("Running tear down steps...")
run_setup_commands(args, "tear down", benchmark_config["teardown"]["commands"], oss_cluster_mode)

progress.update()
end_time = dt.datetime.now()
progress.close()
Expand Down

0 comments on commit 14d2fbe

Please sign in to comment.