From 554f61090f295c346f10b001d29660c022e25fc9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 9 Dec 2023 14:30:20 +0100 Subject: [PATCH] Raise the sigterm to 2h --- roles/heal-docker/files/heal-docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/heal-docker/files/heal-docker.py b/roles/heal-docker/files/heal-docker.py index 85508817..3674fe68 100644 --- a/roles/heal-docker/files/heal-docker.py +++ b/roles/heal-docker/files/heal-docker.py @@ -50,6 +50,6 @@ for failed_container in failed_containers: filtered_failed_docker_compose_repositories=list(dict.fromkeys(unfiltered_failed_docker_compose_repositories)) for filtered_failed_docker_compose_repository in filtered_failed_docker_compose_repositories: print("restarting unhealthy container: " + filtered_failed_docker_compose_repository) - print_bash('cd /home/administrator/docker-compose/' + filtered_failed_docker_compose_repository + '/ && docker-compose restart') + print_bash('cd /home/administrator/docker-compose/' + filtered_failed_docker_compose_repository + '/ && docker-compose stop -t 7200 && docker-compose start') print("finished restart procedure.") \ No newline at end of file