https://prefect.io logo
Title
t

Tim-Oliver

05/05/2023, 12:05 PM
Hi everyone, Is it possible to remove a result which is cached in memory? I have a task
A
which produces a result which I don't want to persist but just keep in memory. This result is consumed by multiple invocations of task
B
. Once all invocations of task
B
are done I don't need the result of task
A
anymore and would like to remove it from the cache to free up some memory. How could I achieve this? Thanks!
Would something like
task_run.result()._cache = None
work?