https://prefect.io logo
a

Alfie

10/08/2020, 2:53 PM
hi Team, I’ve a question about checkpoint. Now I run flows with local environment and they generated a lot of result files like “prefect-result-2020-10-05t19-44-09-835173-00-00”, I want to get rid of them. So if I disable the checkpoint, prefect will not write the result to the disk, and my tasks can still success, right? Thanks
And I’m also confused about PrefectResult, it’s said it stores result in a Prefect database. What database it is? is it just in memory? Thanks.
If PrefectResult will keep the result in memory, maybe I can use it to get rid of those result files too, right? Thanks.
d

Dylan

10/08/2020, 3:37 PM
Hey @Alfie 👋
The Prefect Hybrid Model necessitates some sort of interface for knowing the results of your flow’s task runs
This is what allows a Task to automatically retry
If you’re not using this functionality or don’t need it, you can disable checkpointing
The
PrefectResult
stores the result in Prefect Cloud / Server’s database
(Postgres)
Also @Alfie using Result() as your flow / task result will prevent the data from being persisted anywhere, but it will be available on the state object for the duration of the flow run
That’s probably the quickest way to achieve what you’re looking for
a

Alfie

10/09/2020, 3:17 PM
Hey @Dylan, thanks a lot, it’s very helpful, I will try the Result()
Hey @Dylan, a further question about result: is the type of result bond with the type of storage I use? For example, the result must be local if I use the local storage.
d

Dylan

10/09/2020, 3:48 PM
Hi @Alfie, it does not. You can definitely use `S3Result`/
GCSResult
or whatnot with a
LocalEnviornment
&
LocalAgent
a

Alfie

10/09/2020, 4:35 PM
great, thanks @Dylan
d

Dylan

10/09/2020, 4:42 PM
You bet 😄