#3135 Add instructions for how to handle failures coming from cache policies
Pull request opened by
eapolinario
Tracking issue
flyteorg/flyte#6143
Why are the changes needed?
We should instruct users on how to handle the case of failures coming from the application of cache policies.
What changes were proposed in this pull request?
Have a try-except block in the for loop used to process cache policies and in case a failure is detected we raise a more specific exception that instructs the user what they need to do.
How was this patch tested?
unit tests and local tests.
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Docs link
Summary by Bito
Enhanced error handling and user experience in cache policy implementation with more descriptive error messages and improved exception handling. Added new cache-related exports to public API, updated cache.py with concrete examples for setting cache version, and implemented clear instructions for version generation failures.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 1
flyteorg/flytekit