Skip to content

Commit 6a0763c

Browse files
committed
fix(nodes): flag that this error may point to race conditions
1 parent 36df0c7 commit 6a0763c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ def run(self, updatehash=False):
440440
for outdatedhash in glob(op.join(self.output_dir(), '_0x*.json')):
441441
os.remove(outdatedhash)
442442

443-
444443
# Hashfile while running
445444
hashfile_unfinished = op.join(
446445
outdir, '_0x%s_unfinished.json' % self._hashvalue)
@@ -475,8 +474,10 @@ def run(self, updatehash=False):
475474
logger.warning('[Node] Error on "%s" (%s)', self.fullname, outdir)
476475
# Tear-up after error
477476
if not silentrm(hashfile_unfinished):
478-
logger.debug('Unfinished hashfile %s does not exist',
479-
hashfile_unfinished)
477+
logger.warning("""\
478+
Interface finished unexpectedly and the corresponding unfinished hashfile %s \
479+
does not exist. Another nipype instance may be running against the same work \
480+
directory. Please ensure no other concurrent workflows are racing""", hashfile_unfinished)
480481
raise
481482

482483
# Tear-up after success

0 commit comments

Comments
 (0)