<#4672 [BUG] If inputs are the same and cache vers...
# flytekit
c
#4672 [BUG] If inputs are the same and cache version is the same, but underlying cache for the task doesn't exist, flyte should throw an error or re-run the task Issue created by kaisen99 ### Describe the bug I had the following task serialize correctly and return a map of strings to PickleFile objects:
Copy code
@task(cache=True, cache_version="1.16", container_image=autodoc_image)
def parse(code_path: str) -> Dict[str, PythonClassInfo]:
    class_info = PythonClassParser.parse_path_class_info(code_path)
    path_imports = {}
    PythonImportResolver.resolve_imports(code_path, "", path_imports)
    PythonClassParser.add_import_paths(class_info, path_imports)
    return class_info
However, when the output of this task was used as a input to another subsequent task, flyte was not able to deserialize the input objects as the underlying pickle files didn't exist. An error stating:
File or directory not found: /var/folders/xr/nm8k90x15wn1wbg1st_w6_b00000gn/T/flyte-zs6qmnal/raw/6f8cbb3d9b781bb7c20098489b0a9d67/73652f142ab7693947dc3d3b128a7041
would be thrown. Changing the cache_version number forced flyte to re-run the task which fixed the issue. ### Expected behavior Flyte should ideally let the user know the underlying cache doesn't exist as expected and/or re-run the task ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte