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