https://prefect.io logo
l

link89

10/25/2022, 1:19 AM
I just come into a strange problem. I used to run
rm -rf ~/.prefect/storage/*
to clear cache so that the task would run again next time. But I find it won't work this time and I have to clean the whole
~/.prefect
directory instead of just storage to make it work. Is this a bug or I just miss something? Does prefect provide some command line interface to clear cache?
1
👀 1
And now I found that
~/.prefect/storage
won't be recreated and now cache seems not work anymore.
k

Khuyen Tran

10/25/2022, 3:59 PM
I’m asking my team. Will get back to you on this
Starting from 2.6 you can now use either a custom storage block for results or entirely disable persistence https://docs.prefect.io/concepts/results/. This mean that you can choose to save your result in a custom storage or save it in memory
l

link89

10/26/2022, 12:26 AM
Thank you. But the problem I have now is after I remove everything in
~/.prefect
and the cache cannot be created any more.
k

Khuyen Tran

10/26/2022, 3:56 PM
Hmm that shouldn’t happen. Can you run
Copy code
prefect config view
and paste the output here?
l

link89

10/27/2022, 1:15 AM
prefect config view PREFECT_PROFILE='default'
and the version of perfect is 2.6.4 by the way
k

Khuyen Tran

10/27/2022, 4:42 PM
What did you do to test whether the cache is created?