[Core feature] Support cache overwrite flag at task level #6050
Labels
enhancement
New feature or request
untriaged
This issues has not yet been looked at by the Maintainers
Motivation: Why do you think this is important?
Currently, when tasks need to bypass cache and force re-execution, developers need to modify the
cache_version
parameter. However, this is an internal implementation detail that shouldn't be exposed to end users. Users should have a more intuitive way to control cache behavior at runtime.Goal: What should the final outcome look like, ideally?
Proposal
Add support for a
cache_overwrite
orforce_recompute
flag at the task level that can be set during execution. This would allow:cache_version
) and user controlDescribe alternatives you've considered
Workflow-Level Cache Control
Using Cache Version
Propose: Link/Inline OR Additional context
Example API could look like:
Implementation (rough idea):
overwrite_cache
for Flyte Task DecoratorIsTaskCacheOverwrite
forcache.go
executor.go
, check ifIsTaskCacheOverwrite
, if yes, returnCatalogCacheStatus_CACHE_SKIPPED
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: