Skip to content

Commit d6f1431

Browse files
committed
Add error handling for checking prefix caching in case job json is not ready
1 parent 06c3dd0 commit d6f1431

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vec_inf/cli/_helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ def _check_prefix_caching(self) -> bool:
395395
"json",
396396
self.log_dir,
397397
)
398+
if isinstance(job_json, str):
399+
return False
398400
return job_json.get("enable_prefix_caching", False)
399401

400402
def fetch_metrics(self) -> Union[dict[str, float], str]:

0 commit comments

Comments
 (0)