package current_rpc

  1. Overview
  2. Docs

Module Current_rpc.JobSource

Client-side API to contact a job service.

Sourcetype t = [ `Job_8397ef9078537247 ] Capnp_rpc_lwt.Capability.t
Sourcetype id = string
Sourcetype status = {
  1. id : id;
  2. description : string;
  3. can_cancel : bool;
  4. can_rebuild : bool;
}
Sourceval log : start:int64 -> t -> (string * int64, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.t

log ~start t returns bytes from the log starting at offset start.

Sourceval cancel : t -> (unit, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.t
Sourceval status : t -> (status, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.t
Sourceval rebuild : t -> t

rebuild t requests a rebuild of t and returns the new job.

Sourceval approve_early_start : t -> (unit, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.t