From aa46eaf2fe1b3b4d5a9c321d4d59476e92dc6d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beltr=C3=A1n=20Rodr=C3=ADguez?= Date: Thu, 9 Jul 2026 12:11:29 +0000 Subject: [PATCH] Fix (cherry picked from commit 38ec76215537561105ad591ea96785841e9f2a65) --- .devcontainer/scripts/update-graphql.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/scripts/update-graphql.sh b/.devcontainer/scripts/update-graphql.sh index 2ee1ca85790..a27e6646602 100755 --- a/.devcontainer/scripts/update-graphql.sh +++ b/.devcontainer/scripts/update-graphql.sh @@ -8,8 +8,10 @@ set -ex -o pipefail source .devcontainer/.env docker compose restart graphql-engine -# graphql-engine needs some waiting time before it's up and working -sleep 10 +# graphql-engine applies migrations and metadata before it starts serving, +# so poll the health endpoint instead of sleeping a fixed amount of time +timeout 120 bash -c \ + 'until curl -fsS http://graphql-engine:8080/healthz >/dev/null 2>&1; do sleep 2; done' # Generate graphql schema cd packages/admin-portal