File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
src/aiida_sssp_workflow/workflows Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,15 @@ def on_terminated(self):
3131 self .report (f"{ type (self )} : remote folders will not be cleaned" )
3232 return
3333
34- # The clen_wordir is modified to not clean the remote folder of the caching node.
35- cleaned_calcs = operate_calcjobs (
36- self .node , operator = clean_workdir , all_same_nodes = False
37- )
38-
39- if cleaned_calcs :
34+ try :
35+ cleaned_calcs = operate_calcjobs (
36+ self .node , operator = clean_workdir , all_same_nodes = False
37+ )
38+ except RuntimeError as exc :
39+ self .logger .warning (
40+ f"clean remote workdir folder { self .inputs .clean_workir } failed: { exc } "
41+ )
42+ else :
4043 self .report (
4144 f"cleaned remote folders of calculations: { ' ' .join (map (str , cleaned_calcs ))} "
4245 )
Original file line number Diff line number Diff line change 33WorkChain calculate phonon frequencies at Gamma
44"""
55
6+ from builtins import RuntimeError
67from aiida import orm
78from aiida .common import NotExistentAttributeError
89from aiida .engine import ToContext , while_
@@ -198,7 +199,7 @@ def finalize(self):
198199 cleaned_calcs = operate_calcjobs (
199200 self .node , operator = clean_workdir , all_same_nodes = False
200201 )
201- except ConnectionError as exc :
202+ except RuntimeError as exc :
202203 self .logger .warning (
203204 f"clean remote workdir folder { self .inputs .clean_workir } failed: { exc } "
204205 )
You can’t perform that action at this time.
0 commit comments