Skip to content

Commit cffde70

Browse files
Add assertion for ENABLE_V1_KVCACHE_SCHEDULER (#4146)
1 parent 7f9a9b3 commit cffde70

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

fastdeploy/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,11 @@ def check(self):
13391339
)
13401340
if self.scheduler_config is not None:
13411341
self.scheduler_config.check()
1342+
1343+
if int(envs.ENABLE_V1_KVCACHE_SCHEDULER) == 1:
1344+
assert (
1345+
int(envs.FD_DISABLED_RECOVER) == 0
1346+
), "FD_DISABLED_RECOVER is not supported while ENABLE_V1_KVCACHE_SCHEDULER is turned on."
13421347

13431348
def print(self):
13441349
"""

0 commit comments

Comments
 (0)