Skip to content

Commit

Permalink
creating run id file under try
Browse files Browse the repository at this point in the history
  • Loading branch information
cihga39871 committed Aug 27, 2024
1 parent 7012253 commit 2f1e319
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/run_id_file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f1e319

Please sign in to comment.