Ankit Goyal
02/17/2023, 7:12 PMcache was disabled for this task
for a simple python task, when I have the cache enabled:
@task(cache=True, cache_version="1.0")
def simple_python_task(name: str):
print(f"Hello {name}")
{
"json": {},
"level": "warning",
"msg": "Dataset does not exist key: {Project:flytetester Name:flyte_task-simple_python_task Domain:development Version:1.0-Y1uUT6Xg-GKw-c0Pw UUID:}, err missing entity of type Dataset with identifier project:\"flytetester\" name:\"flyte_task-.simple_python_task\" domain:\"development\" version:\"1.0-Y1uUT6Xg-GKw-c0Pw\" ",
"ts": "2023-02-17T19:01:01Z"
}
Dan Rammer (hamersaw)
02/17/2023, 7:52 PMLooks like a task must have an output to be cached?That is correct.
Ankit Goyal
02/17/2023, 7:52 PMDan Rammer (hamersaw)
02/17/2023, 7:54 PMcache_version
currently. There has been different discussions on using a hash of the function contents to define caching so we could automatically determine changes in the function. But frequently enough, users want to fix a minor bug in the function without invalidating previously cached data.Ankit Goyal
02/17/2023, 7:55 PMDan Rammer (hamersaw)
02/17/2023, 7:57 PMAnkit Goyal
02/17/2023, 7:57 PMDan Rammer (hamersaw)
02/17/2023, 7:59 PMAnkit Goyal
02/17/2023, 8:01 PMDan Rammer (hamersaw)
02/17/2023, 8:03 PMAnkit Goyal
02/17/2023, 8:05 PMDan Rammer (hamersaw)
02/17/2023, 8:10 PMYee
Ankit Goyal
02/17/2023, 8:13 PMYee