def METHOD_NAME() -> bool:
    if end and str(uuid) in self.logs:
        with open(
            self._get_job_final_output_path(str(uuid)),
            "w",
        ) as log_file:
            log_file.write(self.logs[str(uuid)])
        del self.logs[str(uuid)]
    return end