Merged PR 220: Update
Update
This commit is contained in:
@@ -110,19 +110,19 @@ public class ChromaWarmupService {
|
||||
boolean success = true;
|
||||
|
||||
try {
|
||||
// 1. Health check
|
||||
String healthUrl = chromaHost + ":" + chromaPort + "/api/v1/heartbeat";
|
||||
// 1. Health check (updated to v2 API)
|
||||
String healthUrl = chromaHost + ":" + chromaPort + "/api/v2/heartbeat";
|
||||
restTemplate.getForObject(healthUrl, String.class);
|
||||
logger.debug("Heartbeat successful");
|
||||
|
||||
// 2. Lista collezioni (operazione più pesante)
|
||||
String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v1/collections";
|
||||
// 2. Lista collezioni (operazione più pesante, updated to v2 API)
|
||||
String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v2/collections";
|
||||
restTemplate.getForObject(collectionsUrl, String.class);
|
||||
logger.debug("Collections list successful");
|
||||
|
||||
// 3. Prova a contare elementi nella collezione principale
|
||||
try {
|
||||
String countUrl = chromaHost + ":" + chromaPort + "/api/v1/collections/" + collectionName + "/count";
|
||||
String countUrl = chromaHost + ":" + chromaPort + "/api/v2/collections/" + collectionName + "/count";
|
||||
restTemplate.getForObject(countUrl, String.class);
|
||||
logger.debug("Collection count successful");
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user