Repository navigation
fix(propeller): stop recompiling dynamic workflows larger than a cach… - #8130
Open
ChickenBenny wants to merge 2 commits into
Open
ChickenBenny wants to merge 2 commits into
ChickenBenny wants to merge 2 commits into
Conversation
…e entry Signed-off-by: ChickenBenny <zxc123benny14159@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8130 +/- ##
==========================================
+ Coverage 57.31% 57.33% +0.01%
==========================================
Files 931 931
Lines 58329 58334 +5
==========================================
+ Hits 33433 33446 +13
+ Misses 21842 21835 -7
+ Partials 3054 3053 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: ChickenBenny <zxc123benny14159@gmail.com>
ChickenBenny
force-pushed
the
fix/7916-getrawbytes-cache-write
branch
from
October 8, 2026 09:45
51a0ea1 to
ad81245
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue
Closes #7916
Why are the changes needed?
When a dynamic workflow's compiled CRD (
futures_compiled.pb) is larger than the storage cache's per-entry limit (1/1024 ofstorage.cache.max_size_mbs), propeller recompiles the dynamic workflow on every evaluation round.cachedRawStore.ReadRawreturns the data together withCACHE_WRITE_FAILEDwhen the blob store read succeeds but the cache write fails.ReadProtobuftreats that as a soft failure, butgetRawBytesinremote_workflow_store.goreturns early on any error and drops the data.RetrieveCachethen fails, andbuildContextualDynamicWorkflowfalls back to recompiling. The blob is the same size every round, so this keeps happening until the dynamic node finishes.What changes were proposed in this pull request?
getRawBytes: ignoreCACHE_WRITE_FAILEDlikeReadProtobufdoes, and return an error if the reader is nil.PutFlyteWorkflowCRD: ignoreCACHE_WRITE_FAILEDlikeWriteProtobufdoes. The blob is already written at that point, but the error caused a misleadingFailed to cache Dynamic workflowlog every round.How was this patch tested?
Added
Test_cacheFlyteWorkflowLargerThanCacheEntry. It uses a 1MB storage cache and a 100-node CRD that is larger than a cache entry:The new test fails on the base commit with
[CACHE_WRITE_FAILED] Failed to Cache the metadataand passes with this change:I also reproduced it end to end on the
flytectl demosandbox (v1.16.9) with a@dynamicthat fans out 20 tasks, each sleeping 20s. Withstorage.cache.max_size_mbs: 1, the "this will cause the dynamic workflow to be recompiled" warning showed up 31 times in one run. With100it showed up 0 times.Check all the applicable boxes
Related PRs
None.