Skip to content

Commit

Permalink
Use timeout / until to wait for cluster to be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbluca committed May 16, 2022
1 parent 3dfe756 commit 07e5542
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ jobs:
run: |
docker-compose -f .github/docker-compose.yaml up -d
# periodically ping logs until a connection has been established; assume failure after 2 minutes
timeout 2m bash -c 'until docker logs dask-worker 2>&1 | grep -q "Starting established connection"; do sleep 1; done'
docker logs dask-scheduler
docker logs dask-worker
- name: Test with pytest while running an independent dask cluster
Expand Down

0 comments on commit 07e5542

Please sign in to comment.