0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/bin/check_temporal_up
Harry Waye 352dc85956
ci: fix temporal port number 8088 -> 7233 (#16031)
I'm not sure what happened there, but for some reason it was fine with
8088 but I think the right one if 7233.
2023-06-13 16:57:25 +00:00

17 lines
363 B
Bash
Executable File

#!/bin/bash
set -e
# Wait for up to 120 seconds for Temporal to be ready
SECONDS=0
TIMEOUT=120
# Check Temporal
while true; do
curl -s -o /dev/null -I 'http://localhost:7233/' && break || echo 'Checking Temporal status...' && sleep 1
if [ $SECONDS -gt $TIMEOUT ]; then
echo "Timeout waiting for Temporal to be ready"
exit 1
fi
done