Skip to content

Commit 88e30f8

Browse files
keep multiprocess with updatehash=True
1 parent 3e55598 commit 88e30f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: nipype/pipeline/plugins/multiproc.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
336336
if self._local_hash_check(jobid, graph):
337337
continue
338338

339+
cached, updated = self.procs[jobid].is_cached()
339340
# updatehash and run_without_submitting are also run locally
340-
if updatehash or self.procs[jobid].run_without_submitting:
341+
if (cached and updatehash and not updated) or self.procs[jobid].run_without_submitting:
341342
logger.debug("Running node %s on master thread", self.procs[jobid])
342343
try:
343344
self.procs[jobid].run(updatehash=updatehash)

0 commit comments

Comments
 (0)