Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion redisbench_admin/environments/oss_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def spin_up_local_redis(
local_module_files,
configuration_parameters=None,
dbdir_folder=None,
dataset_load_timeout_secs=120,
):
command = generate_standalone_redis_server_args(
binary, dbdir, local_module_files, port, configuration_parameters
Expand All @@ -30,7 +31,7 @@ def spin_up_local_redis(
)
)
redis_process = subprocess.Popen(command)
result = wait_for_conn(redis.StrictRedis(port=port))
result = wait_for_conn(redis.StrictRedis(port=port), dataset_load_timeout_secs)
if result is True:
logging.info("Redis available")
return [redis_process]
Expand Down
7 changes: 7 additions & 0 deletions redisbench_admin/run_local/run_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ def run_local_command_logic(args, project_name, project_version):
)
cluster_api_enabled = False

logging.info(
"Using a dataset load timeout of {} seconds.".format(
dataset_load_timeout_secs
)
)

if setup_type == "oss-cluster":
cluster_api_enabled = True
# pass
Expand Down Expand Up @@ -205,6 +211,7 @@ def run_local_command_logic(args, project_name, project_version):
local_module_file,
redis_configuration_parameters,
dbdir_folder,
dataset_load_timeout_secs,
)

for redis_process in redis_processes:
Expand Down