Skip to content

Commit

Permalink
Only send 125 jobs at a time to the cluster to avoid stressing it too…
Browse files Browse the repository at this point in the history
… much
  • Loading branch information
kit-ty-kate committed Nov 3, 2020
1 parent f387fca commit 471e789
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/build.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ module Op = struct

module Outcome = Current.String

let lwt_pool = Lwt_pool.create 125 (fun () -> Lwt.return_unit)

let run { connection; timeout} job { Key.pool; commit; variant; ty } { Value.base; master } =
Lwt_pool.use lwt_pool @@ fun () ->
let master = Current_git.Commit.hash master in
let build_spec =
let base = Image.hash base in
Expand Down

0 comments on commit 471e789

Please sign in to comment.