Skip to content

Commit 810e909

Browse files
committed
[12.x] Check Redis Cluster is ready
1 parent bd8f66c commit 810e909

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/queues.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,18 @@ jobs:
169169
redis-server --daemonize yes --port 7002 --appendonly yes --cluster-enabled yes --cluster-config-file nodes-7002.conf
170170
redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 --cluster-replicas 0 --cluster-yes
171171
172+
- name: Check Redis Cluster is ready
173+
uses: nick-fields/retry@v3
174+
with:
175+
timeout_seconds: 5
176+
max_attempts: 5
177+
retry_wait_seconds: 5
178+
retry_on: error
179+
command: |
180+
redis-cli -c -h 127.0.0.1 -p 7000 cluster info | grep "cluster_state:ok"
181+
redis-cli -c -h 127.0.0.1 -p 7001 cluster info | grep "cluster_state:ok"
182+
redis-cli -c -h 127.0.0.1 -p 7002 cluster info | grep "cluster_state:ok"
183+
172184
- name: Execute tests
173185
run: vendor/bin/phpunit tests/Integration/Queue
174186
env:

0 commit comments

Comments
 (0)