Skip to content

Commit 5ed5fa1

Browse files
HuangJiamengZLI-afk
authored andcommitted
correct the wrong spelling of 'failure' (deepmodeling#764)
1 parent 4a5557e commit 5ed5fa1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dpgen/dispatcher/DispatcherList.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def run_jobs(self,
4545
mark_failure = False,
4646
outlog = 'log',
4747
errlog = 'err'):
48-
ratio_failure = self.mdata_resources.get("ratio_failue", 0)
48+
ratio_failure = self.mdata_resources.get("ratio_failure", 0)
4949
while True:
5050
if self.check_all_dispatchers_finished(ratio_failure):
5151
self.clean()
@@ -188,7 +188,7 @@ def make_dispatcher(self, ii):
188188

189189

190190
# Base
191-
def check_dispatcher_status(self, ii, allow_failue=False):
191+
def check_dispatcher_status(self, ii, allow_failure=False):
192192
'''catch running dispatcher exception
193193
if no exception occured, check finished'''
194194
if self.dispatcher_list[ii]["dispatcher_status"] == "running":
@@ -198,7 +198,7 @@ def check_dispatcher_status(self, ii, allow_failue=False):
198198
clean = self.mdata_resources.get("clean", False)
199199
try:
200200
# avoid raising ssh exception in download proceess
201-
finished = self.dispatcher_list[ii]["dispatcher"].all_finished(self.dispatcher_list[ii]["entity"].job_handler, allow_failue, clean)
201+
finished = self.dispatcher_list[ii]["dispatcher"].all_finished(self.dispatcher_list[ii]["entity"].job_handler, allow_failure, clean)
202202
if finished:
203203
self.dispatcher_list[ii]["dispatcher_status"] = "finished"
204204
except Exception:

examples/machine/DeePMD-kit-1.0/machine-local-4GPU.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
"resources": {
6666
"allow_failure": true,
67-
"ratio_failue": 0.05,
67+
"ratio_failure": 0.05,
6868
"task_per_node": 16,
6969
"with_mpi": true,
7070
"_comment" : "Load the intel compiler.",

0 commit comments

Comments
 (0)