From 6e1fd52837576a235ee23273fd68136d0a55418b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 9 Nov 2024 12:52:18 +0100 Subject: [PATCH] fix: :bug: restart only on failure --- backend/pilotwings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pilotwings.py b/backend/pilotwings.py index e646c4f..8e5b4c2 100644 --- a/backend/pilotwings.py +++ b/backend/pilotwings.py @@ -94,7 +94,7 @@ def create_or_update_container( labels={"engine": "pilotwings", "owner": owner or credentials.username}, name=container_name, network="pilotwings", - restart_policy={"Name": "always"}, + restart_policy={"Name": "on-failure"}, ) client.images.prune({"dangling": True})