You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect a way to make caching work for this use case (either to implement something in the TypeTransforms -FlytePickleTransformer in this case or something else). I believe the problem is that after calling guess_python_type the HashMethod information is already gone.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
@peterkun23 , given the Flyte execution model, we need a way to provide a hash of the object prior to its execution. In your example, if you provide the hash to the invocation of remote.execute like:
remote.execute(
entity=entity,
inputs={"video_record": video_record},
wait=True,
tags=[],
overwrite_cache=False,
type_hints={"video_record": Annotated[VideoRecord, HashMethod(hash_video_record)]}, # Note the type hint
)
You can remove the Annotated bit from the definition of bar_1:
Describe the bug
Cache hit never happens when running consecutively the following toy example:
Expected behavior
I would expect a way to make caching work for this use case (either to implement something in the
TypeTransforms
-FlytePickleTransformer
in this case or something else). I believe the problem is that after callingguess_python_type
the HashMethod information is already gone.Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: