From 4f1807e3ab0b632181c31a7f4ba3774b3a4fa73e Mon Sep 17 00:00:00 2001 From: clore Date: Tue, 10 Dec 2024 23:00:09 +0000 Subject: [PATCH] disable background job while updating nvidia driver on HiveOS --- lib/nvidia_driver_update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nvidia_driver_update.py b/lib/nvidia_driver_update.py index 4e9308e..ecd5511 100644 --- a/lib/nvidia_driver_update.py +++ b/lib/nvidia_driver_update.py @@ -1,5 +1,6 @@ from lib import config as config_module from lib import docker_interface +from lib import background_job from lib import utils import asyncio import aiofiles @@ -41,7 +42,9 @@ async def run_update(is_hive = False): break if not order_running: if is_hive: + background_job.temporarly_disable(14400) driver_update_code, driver_update_stdout, driver_update_stderr = await utils.async_run_command("nvidia-driver-update http://45.12.132.34/NVIDIA-Linux-x86_64-550.135.run --force", 14400, non_interactive_env_hive) + background_job.enable() if driver_update_code == 0: async with aiofiles.open(config.restart_docker_flag_file, mode='w') as file: await file.write("")