Skip to content

Commit 9655f4b

Browse files
artemrysArtem Rys
authored andcommitted
fix: deprecate FileCheckpointer
1 parent c04821b commit 9655f4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

solnlib/modular_input/checkpointer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import os
2424
import os.path as op
2525
import traceback
26+
import warnings
2627
from abc import ABCMeta, abstractmethod
2728
from typing import Any, Dict, Iterable, Optional
2829

@@ -220,6 +221,10 @@ def __init__(self, checkpoint_dir: str):
220221
Arguments:
221222
checkpoint_dir: Checkpoint directory.
222223
"""
224+
warnings.warn(
225+
"FileCheckpointer is deprecated, please use KVStoreCheckpointer",
226+
stacklevel=2,
227+
)
223228
self._checkpoint_dir = checkpoint_dir
224229

225230
def encode_key(self, key):

0 commit comments

Comments
 (0)