-
Notifications
You must be signed in to change notification settings - Fork 334
[Core feature] Reuse same literals in the dynamic task #3307
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
Conversation
Signed-off-by: Barry Wu <[email protected]>
…ache Signed-off-by: Barry Wu <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3307 +/- ##
===========================================
- Coverage 85.26% 44.97% -40.29%
===========================================
Files 386 319 -67
Lines 30276 26812 -3464
Branches 2969 2953 -16
===========================================
- Hits 25814 12060 -13754
- Misses 3615 14655 +11040
+ Partials 847 97 -750 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
machichima
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Thank you!
Just some nit
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Co-authored-by: Nary Yeh <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]> Co-authored-by: Kevin Su <[email protected]> Co-authored-by: Nary Yeh <[email protected]> Signed-off-by: Atharva <[email protected]>
Tracking issue
Closes flyteorg/flyte#6032
Why are the changes needed?
We should only serialize the variable and upload it once to reuse the same input.
To make the same Python value reuse the literal.
What changes were proposed in this pull request?
Add a local cache to store the literal that has been serialized.
How was this patch tested?
Unit test
Check all the applicable boxes
Summary by Bito
This pull request enhances the Flyte framework by implementing a local caching mechanism using an LRU cache for serialized literals, replacing the previous cache. This improvement boosts efficiency by reducing redundant serialization and uploads of identical Python values. A new unit test has been added to verify caching behavior when pandas is unavailable, and existing unit tests have been updated to ensure the new caching behavior is validated.