Constance Ferragu
11/27/2023, 3:26 PMSamhita Alla
Constance Ferragu
11/28/2023, 10:22 AMConstance Ferragu
11/28/2023, 10:47 AMSamhita Alla
Daniel Danciu
12/08/2023, 1:54 PMfrbtcqftl2w1xy
is supposed to be the current execution id of the task, but it's not. It's a 4 month old execution id.Daniel Danciu
12/08/2023, 1:55 PMDaniel Danciu
12/08/2023, 1:59 PMFranziska Geiger
12/08/2023, 2:55 PM@task(cache=True,
cache_version="0.0.2",
cache_serialize=True,)
def do_something(...):
...
@workflow
def wf():
do_partial = partial(do_something,....)
res = map_task(do_partial,
metadata=TaskMetadata(cache=True, cache_serialize=True, cache_version="0.0.2")(...)
This is what we saw:
• Despite the UI saying that caching is disabled it actually caching (but loading a unrelated cache entry)
• Disabling caching on the task (do_something
) has no effect
• Disabling caching on both task and map task actually disables caching and as expected things don’t cache
• We were not able to find a version where caching works correctly.Samhita Alla
Daniel Danciu
12/08/2023, 5:21 PMTaskMetadata
. Apparently disabling cache in the @task
annotation is ignored (but the Flyte UI incorrectly displays a message saying that caching was disabled, which mislead us). The actual problem is that the cached values do not match the inputs.
So the TL;DR is that we managed to work around the problem by disabling caching. However, when cache is enabled, the task returns some cached data that is incorrect.Samhita Alla