Page
Library
Module
Module type
Parameter
Class
Class type
Source
Current_rpc.EngineSourceClient-side API to contact an engine service.
active_jobs t lists the OCurrent jobs that are still being used in the pipeline. This includes completed jobs, as long as OCurrent is still ensuring they are up-to-date.
job t id is the job with the given ID. This does not have to be an active job (but only active jobs can be rebuilt). If the job ID is unknown, this operation will resolve to a suitable error.
type query_params = {op : string option;Filter by operation type
*)ok : bool option;Filter by success/failure
*)rebuild : bool option;Filter by rebuild-needed flag
*)job_prefix : string option;Filter by job ID prefix (e.g., date "2024-01-15")
*)}type history_entry = {job_id : string;build : int64;outcome : (string, string) result;Ok value or Error message
*)ready : float;Unix timestamp when queued
*)running : float option;Unix timestamp when started, if ever
*)finished : float;Unix timestamp when finished
*)rebuild : bool;Whether a rebuild was requested
*)}val query :
t ->
query_params ->
(history_entry list, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.tquery t params queries the job history database with the given filters. Returns matching entries sorted by finished time (most recent first).
ops t lists all known operation types (e.g., "docker-build", "git-clone").
pipeline_stats t returns counts of pipeline stages in each state.
pipeline_state t returns the overall pipeline state.
pipeline_dot t returns the pipeline graph in Graphviz DOT format.
val get_confirm_level :
t ->
(confirm_level option, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.tget_confirm_level t returns the current confirmation threshold, or None if no confirmation is required.
val set_confirm_level :
t ->
confirm_level option ->
(unit, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.tset_confirm_level t level sets the confirmation threshold. Pass None to disable confirmation.
val rebuild_all :
t ->
string list ->
(rebuild_result, [> `Capnp of Capnp_rpc.Error.t ]) result Lwt.trebuild_all t job_ids attempts to rebuild multiple jobs at once. Returns lists of job IDs that succeeded or failed to be queued for rebuild.