From 393cbf4d1adf2978f6d18c0336ab115a28cea408 Mon Sep 17 00:00:00 2001 From: tellet-q Date: Fri, 18 Jul 2025 09:05:33 +0200 Subject: [PATCH] Remove wait --- tools/run_experiment.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tools/run_experiment.sh b/tools/run_experiment.sh index 1615a125..85c6c728 100644 --- a/tools/run_experiment.sh +++ b/tools/run_experiment.sh @@ -125,21 +125,11 @@ if [[ "$EXPERIMENT_MODE" == "snapshot" ]]; then curl -X PUT \ "http://${PRIVATE_IP_OF_THE_SERVER}:6333/collections/benchmark/snapshots/recover" \ --data-raw "{\"location\": \"${SNAPSHOT_URL}\"}" + echo "" echo "Done recovering collection from snapshot" collection_url="http://${PRIVATE_IP_OF_THE_SERVER}:6333/collections/benchmark" collection_status=$(curl -s "$collection_url" | jq -r '.result.status') - counter=0 - while [[ "$collection_status" != "green" && "$counter" -lt 5 ]]; do - collection_status=$(curl -s "$collection_url" | jq -r '.result.status') - counter=$(expr $counter + 1) - sleep 1 - done - - if [[ "$collection_status" == "green" ]]; then - echo "Experiment stage: Done" - else - echo "Experiment interrupted: collection is not ready." - exit 1 - fi + echo "Experiment stage: collection status is ${collection_status} after recovery" + fi