def _op_finalize_run_attrs(run, exit_status): if not os.path.exists(run.dir): log.warning("run directory has been deleted, unable to finalize") return if not os.path.exists(run.guild_path()): log.warning("run Guild directory has been deleted, unable to finalize") return stopped = runlib.timestamp() run.write_attr("exit_status", exit_status) run.write_attr("stopped", stopped) op_util.delete_proc_lock(run)
def _finalize_run(run, exit_status): run.write_attr("exit_status", exit_status) run.write_attr("stopped", runlib.timestamp()) op_util.delete_proc_lock(run)