https://prefect.io logo
Title
t

Tom

03/08/2022, 1:57 PM
I have another question regarding checkpoints, is it correct that results are not persisted when you run flows through
flow.run()
? (https://stackoverflow.com/questions/66660927/prefect-workflow-how-to-persist-data-of-previous-every-schedule-run)
:discourse: 1
k

Kevin Kho

03/08/2022, 2:17 PM
That’s right but you can make it by setting
PREFECT___FLOWS___CHECKPOINTING=true
t

Tom

03/08/2022, 2:41 PM
Nice, that did the trick, however it seems all of my tasks are being persisted now, not only the ones with
checkpoint=True
k

Kevin Kho

03/08/2022, 2:42 PM
Oh I think for production runs anyway this is overriden to True so you would need the explicit
checkpoint=False
on the ones you don’t want to checkpoint
👍 1