package bistro

  1. Overview
  2. Docs

Parameters

Signature

type t
type task = D.Task.t
type task_result = D.Task.result
type allocator = D.Allocator.t
type resource = D.Allocator.resource
type config = D.Task.config
type 'a thread = 'a D.Thread.t
type trace =
  1. | Run of {
    1. ready : time;
    2. start : time;
    3. end_ : time;
    4. outcome : task_result;
    }
  2. | Skipped of [ `Done_already | `Missing_dep | `Allocation_error of string ]
and time = float
type event =
  1. | Init of {
    1. dag : t;
    2. needed : task list;
    3. already_done : task list;
    }
  2. | Task_ready of task
  3. | Task_started of task * resource
  4. | Task_ended of task_result
  5. | Task_skipped of task * [ `Done_already | `Missing_dep | `Allocation_error of string ]
class type logger = object ... end
val nb_tasks : t -> int
val mem_task : t -> task -> bool
val empty : t
val add_task : t -> task -> t
val add_dep : t -> task -> on:task -> t
val dot_output : t -> (task -> Graph.Graphviz.DotAttributes.vertex list) -> ((task * task) -> Graph.Graphviz.DotAttributes.edge list) -> string -> unit
val run : ?logger:logger -> ?goals:task list -> config -> allocator -> t -> trace Core_kernel.Std.String.Map.t thread
OCaml

Innovation. Community. Security.