Skip to content

Commit

Permalink
fix: add precheck for clickhouse server
Browse files Browse the repository at this point in the history
  • Loading branch information
andyhuang18 committed Dec 2, 2024
1 parent 0cb19bc commit c32807f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/updateCompanyData.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ jobs:
- name: Start ClickHouse service
run: |
docker run -d --name clickhouse-server --ulimit nofile=262144:262144 -p 9000:9000 clickhouse/clickhouse-server
sleep 10
sleep 30
- name: Verify ClickHouse service
- name: List running containers
run: docker ps -a

- name: Check ClickHouse logs
run: docker logs clickhouse-server

- name: Verify ClickHouse is running
run: |
echo "SELECT 1" | clickhouse-client --host=localhost
echo "SELECT 1" | docker exec -i clickhouse-server clickhouse-client --query
- name: Run the Python script
run: |
Expand Down

0 comments on commit c32807f

Please sign in to comment.