From 5fe8dd3d0fabaa8955979636566d2ce1f0dce0d6 Mon Sep 17 00:00:00 2001 From: continuist Date: Sun, 21 Sep 2025 13:59:15 -0400 Subject: [PATCH] Try adding timeout --- .forgejo/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index ba0343e..82f59af 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -218,9 +218,9 @@ jobs: echo "Found containers: $containers" for container in $containers; do echo "Attempting to remove container: $container" - # Try to stop first, then remove - podman --remote stop "$container" 2>/dev/null || true - podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container" + # Try to stop first with timeout, then remove + timeout 10s podman --remote stop "$container" 2>/dev/null || echo "Timeout or error stopping container $container" + timeout 5s podman --remote rm -f "$container" 2>/dev/null || echo "Warning: Could not remove container $container" done else echo "No containers found to remove"