From 2f1e31972b801750fcad56d4208214523d458f54 Mon Sep 17 00:00:00 2001 From: Jiacheng Chuan Date: Tue, 27 Aug 2024 16:53:45 -0300 Subject: [PATCH] creating run id file under try --- src/run_id_file.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/run_id_file.jl b/src/run_id_file.jl index 510ca64..f56265d 100644 --- a/src/run_id_file.jl +++ b/src/run_id_file.jl @@ -148,7 +148,12 @@ function create_run_id_file(run_id_file::AbstractString, inputs::Dict, outputs:: end end end - mv(tmp_file, run_id_file; force=true) + try + mv(tmp_file, run_id_file; force=true) + catch + @warn "Cannot create run id file at $run_id_file. Skip creating." + isfile(tmp_file) && rm(tmp_file) + end end function parse_run_id_file(run_id_file::AbstractString)