Hi everyone, there a way to stop storing task resu...
# prefect-community
t
Hi everyone, there a way to stop storing task results?
k
Hey @Tarcisio, Could you explain your use case a bit? Typically, users will use the Results API to store task results or not if they don't want to persist.
t
I have a flow, that execute some tasks, but prefect is creating a file per task result and some file are 15MB~ so this make my disk to get full quickly, i am using the default Result
k
Prefect doesn't require you to store your results to exchange data between tasks, so you can take off the
Result
you've added to your task and your flow should still run in case that's your concern. However, if you'd like to persist the task results without filling up your local storage, I'd recommend storing those using a Result subclass with a cloud storage provider.
t
ok, thank you =)
👍 1
c
Yea two things you can do here: - set
Flow(result=Result())
with the base
Result
class; this configuration will prevent anything from being stored - set
checkpoint=False
on each individual task; this will prevent data from being written regardless of the result type
upvote 1
👍 1
@Marvin archive “How to stop persisting task data?”