Tanishq Hooda

08/10/2023, 5:28 AM
Hi All, I've a question regarding in memory caching in Prefect, if I read this doc, it says caching is enabled by default, so let's say if I run the same task multiple times from a loop inside a flow, result of all task runs will be cached ?
Copy code
from prefect import flow, task
from prefect import get_run_logger

def huge_data(i):

    return "Return Huge data!"

def test_flow():
    for i in range(5):

if __name__ == "__main__":
in this case huge_data runs 5 times, and let's say the function returns 100 MB of data, will I have a cache of 100*5 = 500 MB at the end of it?