<#6318 Fix: fastcache should not cache lookup on f...
# flyte-github
c
#6318 Fix: fastcache should not cache lookup on failed node Pull request opened by fg91 ## Why are the changes needed? See here for bug description.
Looking at this line (the check you linked), the easy fix is to add && p.GetPhase() != handler.EPhaseFailed as you suggest. I'm wondering if we can consolidate these to p.GetPhase() == EPhaseQueued"? because the preExecute` function returns Queued whenever the inputs correctly resolve. Anything else would not require a cache lookup. (source)
@hamersaw let's go for the
p.GetPhase() != handler.EPhaseFailed
because I'm convinced this is a correct fix and I'm not 100% sure consolidating to
p.GetPhase() == EPhaseQueued
is. • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs https://github.com/flyteorg/flyte/pull/4524| flyteorg/flyte