fix race condition between downloading last file and starting install

This commit is contained in:
Lincoln Stein
2024-02-29 15:08:10 -05:00
committed by psychedelicious
parent e18533e3b5
commit 813a086cfe
7 changed files with 18 additions and 36 deletions

View File

@ -2,6 +2,7 @@
import os
import shutil
import time
from pathlib import Path
from typing import Any, Dict, List
@ -149,6 +150,7 @@ def mm2_installer(
def stop_installer() -> None:
installer.stop()
time.sleep(0.1) # avoid error message from the logger when it is closed before thread prints final message
request.addfinalizer(stop_installer)
return installer