Skip to content

Commit fc332ce

Browse files
committed
Simplify Langflow startup wait to health check loop
1 parent d2175ad commit fc332ce

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

agents/langflow/simple_tool_calling_agent/deploy-local.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,13 @@ echo "Starting local stack (Langflow + PostgreSQL + Langfuse)..."
8585
podman-compose up -d
8686

8787
echo ""
88-
printf "Waiting for Langflow to start (this may take a minute)... "
89-
SPIN='|/-\'
90-
for i in $(seq 1 60); do
88+
echo "Waiting for Langflow to start (this may take a minute)..."
89+
for i in $(seq 1 24); do
9190
if curl -s http://localhost:7860/health >/dev/null 2>&1; then
92-
printf "\r%s\n" "Waiting for Langflow to start (this may take a minute)... done"
91+
echo "Langflow is ready!"
9392
break
9493
fi
95-
printf "\b${SPIN:i%4:1}"
96-
sleep 2
94+
sleep 5
9795
done
9896

9997
echo ""

0 commit comments

Comments
 (0)