Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 14, 2024
1 parent 66f70d1 commit 2476ee3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,13 @@ function download_artifacts(env::EnvCache;
end
end
close(download_jobs)

sema = Base.Semaphore(Threads.nthreads())
# TODO: figure out printing & error handling
@sync for f in download_jobs
Threads.@spawn f()
acquire(sema) do
Threads.@spawn f()
end
end

for f in used_artifact_tomls
Expand Down

0 comments on commit 2476ee3

Please sign in to comment.