module Engine: Ketrew_engine
type
t
val with_engine : configuration:Ketrew_configuration.engine ->
(engine:t ->
(unit,
[> `Database of Trakeva.Error.t
| `Database_unavailable of Ketrew_target.id
| `Dyn_plugin of [> `Dynlink_error of Dynlink.error | `Findlib of exn ]
| `Failure of string ]
as 'merge_error)
Ketrew_unix_io.Deferred_result.t) ->
(unit, 'merge_error) Ketrew_unix_io.Deferred_result.t
engine.t
, run the function passed as argument, and properly dispose of it.val load : configuration:Ketrew_configuration.engine ->
(t,
[> `Database of Trakeva.Error.t
| `Dyn_plugin of [> `Dynlink_error of Dynlink.error | `Findlib of exn ]
| `Failure of string ])
Ketrew_unix_io.Deferred_result.t
val unload : t ->
(unit,
[> `Database of Trakeva.Error.t | `Database_unavailable of Ketrew_target.id ])
Ketrew_unix_io.Deferred_result.t
val configuration : t -> Ketrew_configuration.engine
val add_targets : t ->
Ketrew_target.t list ->
(unit,
[> `Database of Trakeva.Error.t
| `Database_unavailable of Ketrew_target.id
| `Missing_data of Ketrew_target.id
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
val get_target : t ->
Ketrew_pervasives.Unique_id.t ->
(Ketrew_target.t,
[> `Database of Trakeva.Error.t
| `Missing_data of string
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
val all_targets : t ->
(Ketrew_target.t list,
[> `Database of Trakeva.Error.t
| `IO of
[> `Read_file_exn of string * exn | `Write_file_exn of string * exn ]
| `Missing_data of Ketrew_target.id
| `System of [> `File_info of string ] * [> `Exn of exn ]
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
val get_list_of_target_ids : t ->
[ `All
| `Created_after of Ketrew_pervasives.Time.t
| `Not_finished_before of Ketrew_pervasives.Time.t ] ->
(Ketrew_target.id list,
[> `Database of Trakeva.Error.t
| `Missing_data of string
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
`All
for all the targets visible to the engine.`Not_finished_before _
for the targets that were not finished at a given date.module Run_automaton:sig
..end
val get_status : t ->
Ketrew_target.id ->
(Ketrew_target.State.t,
[> `Database of Trakeva.Error.t
| `IO of
[> `Read_file_exn of string * exn | `Write_file_exn of string * exn ]
| `Missing_data of string
| `System of [> `File_info of string ] * [> `Exn of exn ]
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
val kill : t ->
id:Ketrew_pervasives.String.t ->
(unit,
[> `Database of [> `Act of Trakeva.Action.t | `Load of string ] * string
| `Database_unavailable of string ])
Ketrew_unix_io.Deferred_result.t
val restart_target : t ->
Ketrew_target.id ->
(Ketrew_target.id,
[> `Database of Trakeva.Error.t
| `Database_unavailable of Ketrew_target.id
| `Missing_data of Ketrew_target.id
| `Target of [> `Deserilization of string ] ])
Ketrew_unix_io.Deferred_result.t
module Measure:sig
..end
module Measurements:sig
..end