Skip to content

Commit

Permalink
Updated 'max-consecutive-failures' and 'reserve-timeout' arguments as…
Browse files Browse the repository at this point in the history
… indicated by Aron
  • Loading branch information
Cmurilochem committed Feb 26, 2024
1 parent 3373916 commit 3cbc5eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions n3fit/src/n3fit/hyper_optimization/mongofiletrials.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ def start_mongo_workers(
workdir=None,
exp_key=None,
poll_interval=0.1,
use_subprocesses=False,
max_consecutive_failures=4,
reserve_timeout=None,
no_subprocesses=False,
max_consecutive_failures=10,
reserve_timeout=600,
):
"""Initiates all mongo workers simultaneously."""
# get the number of gpu cards, if any
Expand All @@ -248,7 +248,7 @@ def start_mongo_workers(
args.extend(["--max-consecutive-failures", str(max_consecutive_failures)])
if reserve_timeout:
args.extend(["--reserve-timeout", str(reserve_timeout)])
if use_subprocesses:
if no_subprocesses:
args.append("--no-subprocesses")

# start the worker as a subprocess
Expand Down

0 comments on commit 3cbc5eb

Please sign in to comment.