acoustic-carpenter-78188
01/09/2023, 3:27 PMCaching was disabled for this execution. for tasks with cache enabled
Issue created by fg91
Describe the bug
When a Python task - which has the cache enabled - fails, the flyte console displays an erroneous and misleading warning that Caching was disabled for this execution.
I have also seen this warning for *_successful_ tasks (see screenshot) even though I unfortunately cannot come up with a minimal example to consistently reproduce this.
Expected behavior
This warning should not be shown.
Additional context to reproduce
from flytekit import task, workflow
@task(
cache=True,
cache_version="1.0",
)
def fail() -> None:
raise Exception()
@workflow
def workflow():
fail()
Screenshots
Screenshot 2023-01-09 at 16 24 40▾
Screenshot 2023-01-09 at 16 24 45▾
Screenshot 2023-01-09 at 17 20 56▾
Screenshot 2023-01-10 at 10 00 53▾
Screenshot 2023-01-10 at 12 05 56▾
Screenshot 2023-01-10 at 12 05 35▾
acoustic-carpenter-78188
01/26/2023, 8:18 AMCaching was disabled for this execution. for tasks with cache enabled
Issue closed as completed by fg91
flyteorg/flyte