Library
Module
Module type
Parameter
Class
Class type
type job_spec = [
| `Docker of
[ `Contents of string | `Path of string ] * Cluster_api.Docker.Spec.options
| `Obuilder of [ `Contents of string ]
| `Custom of Cluster_api.Custom.recv
]
module Obuilder_config : sig ... end
type build =
switch:Lwt_switch.t ->
log:Log_data.t ->
src:string ->
secrets:(string * string) list ->
job_spec ->
(string, [ `Cancelled | `Msg of string ]) Lwt_result.t
val default_build : ?obuilder:Cluster_worker__.Obuilder_build.t -> build
The default build that is used if no build
argument is given to run
.
val run :
?switch:Lwt_switch.t ->
?build:build ->
?allow_push:string list ->
healthcheck_period:float ->
?prune_threshold:float ->
?docker_max_df_size:float ->
?obuilder_prune_threshold:float ->
?obuilder_prune_item_threshold:int64 ->
?obuilder_prune_limit:int ->
?obuilder:Obuilder_config.t ->
?additional_metrics:(string * Uri.t) list ->
update:(unit -> (unit -> unit Lwt.t) Lwt.t) ->
capacity:int ->
name:string ->
state_dir:string ->
Cluster_api.Raw.Client.Registration.t Capnp_rpc_lwt.Sturdy_ref.t ->
unit Lwt.t
run ~capacity ~name ~state_dir registry
runs a builder that connects to registry and runs up to capacity
jobs at once. The builder registers using the unique ID name
.
module Process : sig ... end
module Log_data : sig ... end