Skip to content

Commit

Permalink
Please let it work this time :)
Browse files Browse the repository at this point in the history
  • Loading branch information
prmoore77 committed Jan 10, 2024
1 parent 92b6298 commit a85233d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/test_flight_sql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export FLIGHT_PASSWORD="testing123"
# Start the Flight SQL Server - in the background...
${SCRIPT_DIR}/start_flight_sql.sh &

# Set a timeout limit for waiting (e.g., 60 seconds)
# Set a timeout limit for waiting
timeout_limit=300
elapsed_time=0
interval=1 # seconds
Expand All @@ -21,6 +21,8 @@ while [ $elapsed_time -lt $timeout_limit ]; do
if pgrep --exact "flight_sql" > /dev/null; then
echo "Flight SQL Server process started successfully!"
started="1"
# Sleep for a few more seconds...
sleep 10
break
fi

Expand Down

0 comments on commit a85233d

Please sign in to comment.