-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task graph key values are not interpolated #16
Comments
Related to this issue is dask/dask#3523. Specifically, Matthew Rockling clarified that:
This means that tasks appearing in lists or dict values should be interpolated by the output of those tasks. For us that means that In PR #18 the |
In PR #18 the try:
dephash_list.append(keyhashmap[task])
except Exception:
arghash_list.extend(recursive_hash(task)) To fix the above comment, we should probably implement a |
Yes, this would actually simplify conceptually the whole hashing approach. BTW, there is also an additional hidden issue in the fact that the literal type is not taken into account right now during traversal. Most probably the two separate issues of traversing literals during hashing and the graph (for value interpolation) could be effectively combined into a single search. |
The values of keys are not correctly retrieved when the value is a key reference. Hashing is also broken as it does not return the hash of the refefenced key but the hash of the string itself (in the example below,
graphchain.funcutils.get_hash('b', ...) != graphchain.funcutils.get_hash(1, ...)
The text was updated successfully, but these errors were encountered: