Skip to content

Commit d3aa132

Browse files
authored
Merge pull request #630 from PROCOLLAB-github/prod-release-hardening
Скорректирована blocking-проверка Celery после деплоя
2 parents 466734d + 9885657 commit d3aa132

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dev-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
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}" &&

.github/workflows/release-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}"

0 commit comments

Comments
 (0)