Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Oct 14, 2024
1 parent 94bb332 commit 36d5a40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ function main(;
clean_cache(cachedir)

(; ipynbs, litnbs) = list_notebooks(basedir, cachedir)
ts_lit = []
ts_ipynb = []

if length(litnbs) > 0
# Execute literate notebooks in worker process(es)
Expand All @@ -116,6 +118,8 @@ function main(;
end
end
any(isnan, ts_lit) && error("Please check literate notebook error(s).")
else
ts_lit = []
end

if length(ipynbs) > 0
Expand All @@ -133,7 +137,8 @@ function main(;
ts_ipynb = asyncmap(cmds; ntasks) do cmd
@elapsed run(cmd)
end

else
ts_ipynb = []
end

# Print execution result
Expand Down

0 comments on commit 36d5a40

Please sign in to comment.