Skip to content

Commit

Permalink
fix: make histogram calculation and rendering less blocking (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashankar authored Nov 30, 2024
1 parent 73d1c1a commit eabefac
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 312 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ jobs:
run: sed -i '/COPY .env/d' Dockerfile

- name: Build Docker image
run: docker build -t docetl .
run: |
if ! docker build -t docetl .; then
echo "Docker build failed"
exit 1
fi
- name: Create Docker volume
run: docker volume create docetl-data
Expand All @@ -38,18 +42,37 @@ jobs:
-e BACKEND_PORT=8000 \
--name docetl-test \
docetl
# Wait for container to start up
sleep 240
# Wait for initial startup
echo "Waiting for container to start..."
sleep 30
# Check container health for up to 3 minutes
for i in {1..6}; do
if ! docker ps -q -f name=docetl-test > /dev/null 2>&1; then
echo "Container stopped unexpectedly"
docker logs docetl-test
exit 1
fi
# Try to curl the frontend
if curl -s -f http://localhost:3000 > /dev/null; then
echo "Frontend is responding"
break
fi
if [ $i -eq 6 ]; then
echo "Container health check failed after 3 minutes"
docker logs docetl-test
exit 1
fi
echo "Waiting for services to be ready... (attempt $i/6)"
sleep 30
done
# Check if container is still running
if [ "$(docker ps -q -f name=docetl-test)" ]; then
echo "Container is running successfully"
else
echo "Container failed to stay running"
docker logs docetl-test
exit 1
fi
# If we get here, container is running and healthy
echo "Container is running successfully"
# Cleanup
docker stop docetl-test
Expand Down
Loading

0 comments on commit eabefac

Please sign in to comment.