https://prefect.io logo
Title
a

Alexander Verbitsky

02/12/2020, 7:12 PM
I found that I can specify
result_handler
for task, but it doesn't check that data already exists in a repeatable run
c

Chris White

02/12/2020, 7:13 PM
Hi @Alexander Verbitsky - yes this is possible via caching: https://docs.prefect.io/core/concepts/persistence.html#output-caching
a

Alexander Verbitsky

02/12/2020, 7:16 PM
How to specify where data should be stored? As i understood cache works only during of execution of
flow
.
Or data will be cached in corresponds to configuration result_handler?
The cache is stored in context

Note that when running Prefect Core locally, your Tasks' cached states will be stored in memory within prefect.context.
From documentation. What does it mean? It is mean that when i would not run locally behaviour will be changed?
c

Chris White

02/12/2020, 10:08 PM
Hi Alexander, check out these issues for some more info: https://github.com/PrefectHQ/prefect/issues/1221, https://github.com/PrefectHQ/prefect/issues/1303 and https://github.com/PrefectHQ/prefect/issues/1304 Let me know if you have any additional questions and I’d be happy to provide further info