Skip to content

Commit 5b31f2a

Browse files
committed
added note to list_blocked_tasks about potential causes of graph not empty errors
1 parent 7350def commit 5b31f2a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pydra/engine/submitter.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,18 @@ async def expand_workflow(self, wf, rerun=False):
173173
raise Exception(
174174
"graph is not empty, but not able to get more tasks "
175175
"- something may have gone wrong when retrieving the results "
176-
"of predecessor tasks caused by a file-system error or a bug "
177-
"in the internal workflow logic.\n\nBlocked tasks\n-------------\n"
178-
+ "\n".join(blocked)
176+
"of predecessor tasks. This could be caused by a file-system "
177+
"error or a bug in the internal workflow logic, but is likely "
178+
"to be caused by the hash of an upstream node being unstable."
179+
" \n\nHash instability can be caused by an input of the node being "
180+
"modified in place, or by psuedo-random ordering of `set` or "
181+
"`frozenset` inputs (or nested attributes of inputs) in the hash "
182+
"calculation. To ensure that sets are hashed consistently you can "
183+
"you can try set the environment variable PYTHONHASHSEED=0 for "
184+
"all processes, but it is best to try to identify where the set "
185+
"objects are occurring and manually hash their sorted elements. "
186+
"(or use list objects instead)"
187+
"\n\nBlocked tasks\n-------------\n" + "\n".join(blocked)
179188
)
180189
for task in tasks:
181190
# grab inputs if needed

0 commit comments

Comments
 (0)