def wait_execution()

in src/hpcadvisor/main_gui.py [0:0]


def wait_execution(execution_placeholder):
    while True:
        last_line = ""
        if os.path.exists(execution_tracker_filename):
            with open(execution_tracker_filename, "r") as file:
                lines = file.readlines()
            if lines:
                last_line = lines[-1].strip()

            if last_line == "all_done":
                return
        time.sleep(2)

        last_line = "status: " + last_line
        execution_placeholder.write(last_line)