https://prefect.io logo
#prefect-community
Title
# prefect-community
h

Horatiu Bota

04/07/2022, 5:46 PM
hi community! is there a good way to invalidate a checkpoint? tried setting
cache_validator=prefect.engine.cache_validator.never_use
on the task but that doesn't seem to do the trick (running prefect core locally)
k

Kevin Kho

04/07/2022, 5:48 PM
I am so confused because core doesn’t respect caching to begin with. Are you using
targets
?
h

Horatiu Bota

04/07/2022, 5:48 PM
yes
sorry for the confusion 😅
k

Kevin Kho

04/07/2022, 5:48 PM
Ah you can’t invalidate those. You can be clever using a Parameter and deleting the target files if the Parameter is true?
h

Horatiu Bota

04/07/2022, 5:52 PM
ok, thank you!
k

Kevin Kho

04/07/2022, 5:53 PM
You can change the filename to make it good for each day/hour/etc.
h

Horatiu Bota

04/07/2022, 5:54 PM
👍
5 Views