File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -394,16 +394,17 @@ def run(self, updatehash=False):
394
394
if not force_run and str2bool (self .config ['execution' ]['stop_on_first_rerun' ]):
395
395
raise Exception ('Cannot rerun when "stop_on_first_rerun" is set to True' )
396
396
397
- # Hashfile while running, remove if exists already
398
- hashfile_unfinished = op .join (
399
- outdir , '_0x%s_unfinished.json' % hashvalue )
397
+ # Remove hashfile if it exists at this point (re-running)
400
398
if op .exists (hashfile ):
401
399
os .remove (hashfile )
402
400
401
+ # Hashfile while running
402
+ hashfile_unfinished = op .join (
403
+ outdir , '_0x%s_unfinished.json' % hashvalue )
404
+
403
405
# Delete directory contents if this is not a MapNode or can't resume
404
406
rm_outdir = not isinstance (self , MapNode ) and not (
405
407
self ._interface .can_resume and op .isfile (hashfile_unfinished ))
406
-
407
408
if rm_outdir :
408
409
emptydirs (outdir , noexist_ok = True )
409
410
else :
You can’t perform that action at this time.
0 commit comments