Skip to content

Commit

Permalink
correct the wrong spelling of 'failure' (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuangJiameng committed Jun 29, 2022
1 parent 9083b1d commit f5c3172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dpgen/dispatcher/DispatcherList.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def run_jobs(self,
mark_failure = False,
outlog = 'log',
errlog = 'err'):
ratio_failure = self.mdata_resources.get("ratio_failue", 0)
ratio_failure = self.mdata_resources.get("ratio_failure", 0)
while True:
if self.check_all_dispatchers_finished(ratio_failure):
self.clean()
Expand Down Expand Up @@ -188,7 +188,7 @@ def make_dispatcher(self, ii):


# Base
def check_dispatcher_status(self, ii, allow_failue=False):
def check_dispatcher_status(self, ii, allow_failure=False):
'''catch running dispatcher exception
if no exception occured, check finished'''
if self.dispatcher_list[ii]["dispatcher_status"] == "running":
Expand All @@ -198,7 +198,7 @@ def check_dispatcher_status(self, ii, allow_failue=False):
clean = self.mdata_resources.get("clean", False)
try:
# avoid raising ssh exception in download proceess
finished = self.dispatcher_list[ii]["dispatcher"].all_finished(self.dispatcher_list[ii]["entity"].job_handler, allow_failue, clean)
finished = self.dispatcher_list[ii]["dispatcher"].all_finished(self.dispatcher_list[ii]["entity"].job_handler, allow_failure, clean)
if finished:
self.dispatcher_list[ii]["dispatcher_status"] = "finished"
except Exception:
Expand Down
2 changes: 1 addition & 1 deletion examples/machine/DeePMD-kit-1.0/machine-local-4GPU.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"resources": {
"allow_failure": true,
"ratio_failue": 0.05,
"ratio_failure": 0.05,
"task_per_node": 16,
"with_mpi": true,
"_comment" : "Load the intel compiler.",
Expand Down

0 comments on commit f5c3172

Please sign in to comment.