From 3738ebbf5ae961ba75208fa9dda2e49713017161 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 15 Oct 2025 15:08:38 +0300 Subject: [PATCH] add force wait --- .gitea/actions/vk-notify/action.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitea/actions/vk-notify/action.yaml b/.gitea/actions/vk-notify/action.yaml index a5863b3..bdcb59b 100644 --- a/.gitea/actions/vk-notify/action.yaml +++ b/.gitea/actions/vk-notify/action.yaml @@ -50,4 +50,17 @@ runs: date sleep 5 echo "[DEBUG] Finished sleep, message should have been delivered." - date \ No newline at end of file + date + + - name: Force wait for container cleanup + if: always() + shell: bash + run: | + echo "[DEBUG] Waiting for runner cleanup barrier..." + # пока Docker демон удаляет контейнер, удерживаем процесс активным + for i in {1..5}; do + docker ps -a | grep act || break + echo "[DEBUG] Runner still cleaning up... $i" + sleep 1 + done + echo "[DEBUG] Cleanup done." \ No newline at end of file