From b003fc580f8f77eda8233709c1acc854a5f9ad83 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Wed, 29 May 2024 10:32:52 +0200 Subject: [PATCH] feat: Never restart session containers Failing session containers can result in restart loop until the garbage cleaner terminates the session after 90 minutes. Most of the failing containers do fail after restarts again and produce unnecessary costs. In the rare cases of one-time failures, the session can be created again in the frontend / via the API. --- backend/capellacollab/sessions/operators/k8s.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/capellacollab/sessions/operators/k8s.py b/backend/capellacollab/sessions/operators/k8s.py index 9ede0ebff..3acd753ae 100644 --- a/backend/capellacollab/sessions/operators/k8s.py +++ b/backend/capellacollab/sessions/operators/k8s.py @@ -563,7 +563,7 @@ def _create_deployment( ) ], volumes=k8s_volumes, - restart_policy="Always", + restart_policy="Never", ), ), ),