Skip to content

Commit

Permalink
wait for external indexing server before benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Nov 26, 2024
1 parent e349cb2 commit 88f2bb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/scripts/run-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ echo "host all all ::1/128 trust" >>

POSTGRES_HOST_AUTH_METHOD=trust /usr/lib/postgresql/$PG_VERSION/bin/postgres 1>/tmp/pg-out.log 2>/tmp/pg-error.log &
wait_for_pg

# wait for external indexing server
while ! nc -z localhost 8998; do
sleep 0.1
done

cd $WORKDIR/lantern_hnsw/build

export DATABASE_URL=postgresql://localhost:5432/postgres
Expand Down

0 comments on commit 88f2bb1

Please sign in to comment.