Skip to content

Commit

Permalink
added logging to assist in tracking down hashing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 11, 2023
1 parent eb02e5f commit 240a9d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pydra/engine/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,13 @@ def _check_for_hash_changes(self):
f"Input field hashes have changed during the execution of the "
f"'{self.name}' {type(self).__name__}.\n{details}"
)
logger.debug(
"Input values and hashes for '%s' %s node:\n%s\n%s",
self.name,
type(self).__name__,
self.inputs,
self.inputs._hashes,
)

SUPPORTED_COPY_MODES = FileSet.CopyMode.any
DEFAULT_COPY_COLLATION = FileSet.CopyCollation.any
Expand Down
1 change: 1 addition & 0 deletions pydra/engine/submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ async def expand_workflow(self, wf, rerun=False):
"(potentially related to the file-system)"
)
msg += "\n"
msg += "Set loglevel to 'debug' in order to track hash changes"
raise RuntimeError(msg)
for task in tasks:
# grab inputs if needed
Expand Down

0 comments on commit 240a9d0

Please sign in to comment.