Skip to content

Commit 13c724e

Browse files
committed
Address colleague feedback
- Fix stale directory path in README (agents/base → agents/langflow) - Add :Z to volume mounts for SELinux compatibility - Wait for Langflow health check instead of fixed sleep - Change GPU text to generic 'running natively on host'
1 parent 1509068 commit 13c724e

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

agents/langflow/simple_tool_calling_agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Outdoor activity planning agent built with Langflow. It recommends the best day
4545
### Start the local stack
4646

4747
```bash
48-
cd agents/base/langflow_simple_tool_calling_agent
48+
cd agents/langflow/simple_tool_calling_agent
4949
chmod +x deploy-local.sh cleanup-local.sh
5050
./deploy-local.sh
5151
```

agents/langflow/simple_tool_calling_agent/deploy-local.sh

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

8787
echo ""
88-
echo "Waiting for services to start..."
89-
sleep 10
88+
echo "Waiting for Langflow to start (this may take a minute)..."
89+
for i in $(seq 1 60); do
90+
if curl -s http://localhost:7860/health >/dev/null 2>&1; then
91+
break
92+
fi
93+
sleep 2
94+
done
9095

9196
echo ""
9297
echo "=== Local environment is ready ==="
9398
echo ""
9499
echo " Langflow UI: http://localhost:7860"
95100
echo " Langfuse: http://localhost:3000 (login: admin@langflow.local / admin123)"
96101
if [ "$USE_OLLAMA" = "yes" ]; then
97-
echo " Ollama API: http://localhost:11434 (running natively with GPU)"
102+
echo " Ollama API: http://localhost:11434 (running natively on host)"
98103
fi
99104
echo ""
100105
echo " Next steps:"

agents/langflow/simple_tool_calling_agent/local/podman-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ services:
2020
LANGFUSE_PUBLIC_KEY: "pk-lf-local-dev"
2121
LANGFUSE_SECRET_KEY: "sk-lf-local-dev"
2222
volumes:
23-
- langflow_data:/var/lib/langflow
23+
- langflow_data:/var/lib/langflow:Z
2424
depends_on:
2525
postgres:
2626
condition: service_healthy
@@ -35,8 +35,8 @@ services:
3535
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-langflow}
3636
POSTGRES_DB: ${POSTGRES_DB:-langflow}
3737
volumes:
38-
- postgres_data:/var/lib/postgresql/data
39-
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
38+
- postgres_data:/var/lib/postgresql/data:Z
39+
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:Z
4040
healthcheck:
4141
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-langflow}"]
4242
interval: 5s

0 commit comments

Comments
 (0)