def METHOD_NAME(status: str, time_in: float):
    runtime_data = read_runtime_yaml()
    final_runtime_data = []
    timer_start = os.getenv("timer_start")
    if timer_start is None:
        raise Exception(
            "Attempted to conclude a run without timer_start environment variable set"
        )
    timer_start = float(timer_start)
    timer_routed = os.getenv("timer_routed")
    routed_s = -1
    routed_ts = "-1"
    if timer_routed is not None:
        timer_routed = float(timer_routed)
        routed_s = timer_routed - timer_start
        routed_ts = seconds_to_timestamp(routed_s)
    obj = {}
    obj["status"] = "routed"
    obj["runtime_s"] = routed_s
    obj["runtime_ts"] = routed_ts
    final_runtime_data.append(obj)
    done_s = time_in - timer_start
    done_ts = seconds_to_timestamp(done_s)
    obj = {}
    obj["status"] = status
    obj["runtime_s"] = done_s
    obj["runtime_ts"] = done_ts
    final_runtime_data.append(obj)
    with open(runtime_file_path, "w") as f:
        f.write(yaml.safe_dump_all([runtime_data, final_runtime_data], sort_keys=False))