add force wait

This commit is contained in:
2025-10-15 15:08:38 +03:00
parent fa2c1e58e9
commit 3738ebbf5a

View File

@@ -50,4 +50,17 @@ runs:
date
sleep 5
echo "[DEBUG] Finished sleep, message should have been delivered."
date
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."