<#6079 [BUG] with_overrides for cache doesn't work...
# flyte-github
c
#6079 [BUG] with_overrides for cache doesn't work Issue created by hebiao064 ### Describe the bug I tried the
with_overrides
to override cache configuration for a local flyte @task, but it didn't work as expected. Code: @task( cache=False, cache_version="v1", cache_serialize=False, ) def to_be_overridden_task(a: str) -> str: return f"*~*~*~{a}*~*~*~" def to_be_overridden_task_wrapper(a: str, cache: bool = False, cache_version: str = "", cache_serialize: bool = False) -> str: return to_be_overridden_task(a=a).with_overrides( cache=cache, cache_version=cache_version, cache_serialize=cache_serialize ) @workflow def my_overridden_wf(a: str): return to_be_overridden_task_wrapper(a=a, cache=True, cache_version="foo", cache_serialize=True) After pyflyte run, I found the
cache
is still
False
and
cache_version
still
""
### Expected behavior After
pyflyte run
,
cache
should be overridden to True also
cache_version
,
cache_serialize
should be overridden to corresponding values ### Additional context to reproduce No response ### Screenshots [Screenshot 2024-12-03 at 5 57 29 PM](https://private-user-images.githubusercontent.com/11166516/392197253-ae5f4838-06af-4d8c-8c8b-54c49a027a9d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDc4MTI5MTksIm5iZiI6MTc0NzgxMjYxOSwicGF0aCI6Ii8xMTE2NjUxNi8zOTIxOTcyNTMtYWU1ZjQ4MzgtMDZhZi00ZDhjLThjOGItNTRjNDlhMDI3YTlkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTIxVDA3MzAxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI2ZTc3ZTU2ZDJkMWI0NmUwOGU3YmRiZjQyMGE1ZDEyM2NmNDg2ZjZjN2M0MThjN2M4MTkwYmUwZmEwYjg5MDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6u6ZZd2VA_p8ljPcfJwJUvWHW9lEqXeXI-12-1yB0CU) In serialized proto, the cache is still False ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte