Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions run_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function wait_for_service() {
}

function redis_ready() { redis-cli -p 6379 ping 2>/dev/null | grep -q PONG; }
function diracx_ready() { curl --silent --show-error --fail --output /dev/null --max-time 2 http://localhost:8000/api/health/ready; }

# Make a keystore
keystore="${tmp_dir}/keystore/jwks.json"
Expand Down Expand Up @@ -217,9 +218,9 @@ function restart_process() {
all_pid_values[$i]=$!
}

# Wait for uvicorn
# Wait for DiracX readiness
if wait_for_service "uvicorn" "$diracx_pid" "${tmp_dir}/logs/uvicorn.log" \
curl --silent --max-time 2 --head http://localhost:8000; then
diracx_ready; then
status_line="✅ DiracX is running on http://localhost:8000"
else
status_line="❌ Failed to start DiracX — check ${tmp_dir}/logs/uvicorn.log"
Expand Down
Loading