File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888 for attempt in $(seq 1 24); do
8989 celery_status="$(docker inspect -f '{{.State.Status}}' api_celery 2>/dev/null || true)" &&
9090 if [ "$celery_status" = "running" ]; then
91- celery_ping="$(docker compose -f docker-compose.dev-ci.yml exec -T celerys sh -lc 'celery -A procollab inspect ping -d \"celery@$(hostname)\" ' 2>&1 || true)" &&
91+ celery_ping="$(docker compose -f docker-compose.dev-ci.yml exec -T celerys sh -lc 'celery -A procollab inspect ping --timeout=10 ' 2>&1 || true)" &&
9292 printf '%s\n' "$celery_ping" &&
9393 if printf '%s\n' "$celery_ping" | grep -q 'pong'; then
9494 echo "Celery check passed on attempt ${attempt}" &&
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ jobs:
215215 for attempt in $(seq 1 24); do
216216 celery_status="$(docker inspect -f '{{.State.Status}}' api_celery 2>/dev/null || true)"
217217 if [ "$celery_status" = "running" ]; then
218- celery_ping="$(docker compose -f docker-compose.prod-ci.yml -p prod exec -T celerys sh -lc 'celery -A procollab inspect ping -d \"celery@$(hostname)\" ' 2>&1 || true)"
218+ celery_ping="$(docker compose -f docker-compose.prod-ci.yml -p prod exec -T celerys sh -lc 'celery -A procollab inspect ping --timeout=10 ' 2>&1 || true)"
219219 printf '%s\n' "$celery_ping"
220220 if printf '%s\n' "$celery_ping" | grep -q 'pong'; then
221221 echo "Celery check passed on attempt ${attempt}"
You can’t perform that action at this time.
0 commit comments