From 7f9df2a01836cee8507941a5f542ec85f08b6813 Mon Sep 17 00:00:00 2001 From: Markiyan Date: Mon, 15 Apr 2024 13:56:01 +0000 Subject: [PATCH] add Stop the container after suspend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit чомусь деколи суспенд через апі птерика не виключає сам контейнер цей фікс це виправляє --- suspend_miners.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suspend_miners.py b/suspend_miners.py index 8b83457..5ea404f 100644 --- a/suspend_miners.py +++ b/suspend_miners.py @@ -131,6 +131,9 @@ def suspend_container(): print(f"Response: {response.text}") + # Stop the container + subprocess.run(['docker', 'stop', uuid]) + # End the script if no commands were found if not found_commands: print("No commands found, exiting.")