Skip to content

Commit 6d954f7

Browse files
Using dbconfig.dataset_load_timeout_secs on run-local (#168)
* [fix] Using dbconfig.dataset_load_timeout_secs on run-local * Bumping version from 0.3.6 to 0.3.7 * [fix] Using dbconfig.dataset_load_timeout_secs on run-local
1 parent a2901b4 commit 6d954f7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

redisbench_admin/environments/oss_standalone.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def spin_up_local_redis(
1919
local_module_files,
2020
configuration_parameters=None,
2121
dbdir_folder=None,
22+
dataset_load_timeout_secs=120,
2223
):
2324
command = generate_standalone_redis_server_args(
2425
binary, dbdir, local_module_files, port, configuration_parameters
@@ -30,7 +31,7 @@ def spin_up_local_redis(
3031
)
3132
)
3233
redis_process = subprocess.Popen(command)
33-
result = wait_for_conn(redis.StrictRedis(port=port))
34+
result = wait_for_conn(redis.StrictRedis(port=port), dataset_load_timeout_secs)
3435
if result is True:
3536
logging.info("Redis available")
3637
return [redis_process]

redisbench_admin/run_local/run_local.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ def run_local_command_logic(args, project_name, project_version):
162162
)
163163
cluster_api_enabled = False
164164

165+
logging.info(
166+
"Using a dataset load timeout of {} seconds.".format(
167+
dataset_load_timeout_secs
168+
)
169+
)
170+
165171
if setup_type == "oss-cluster":
166172
cluster_api_enabled = True
167173
# pass
@@ -205,6 +211,7 @@ def run_local_command_logic(args, project_name, project_version):
205211
local_module_file,
206212
redis_configuration_parameters,
207213
dbdir_folder,
214+
dataset_load_timeout_secs,
208215
)
209216

210217
for redis_process in redis_processes:

0 commit comments

Comments
 (0)