package sihl-core

  1. Overview
  2. Docs
type scheduled_time =
  1. | Every of Time.duration
val show_scheduled_time : scheduled_time -> Ppx_deriving_runtime.string
type t = {
  1. label : string;
  2. scheduled_time : scheduled_time;
  3. fn : unit -> unit Lwt.t;
}
val fn : t -> unit -> unit Lwt.t
val scheduled_time : t -> scheduled_time
val label : t -> string
module Fields : sig ... end
type stop_schedule = unit -> unit
val get_function : t -> unit -> unit Lwt.t
val run_in : t -> now:'a -> float
val scheduled_function : t -> unit -> unit Lwt.t
val create : scheduled_time -> f:(unit -> unit Lwt.t) -> label:string -> t
val every_second : scheduled_time
val every_hour : scheduled_time
val log_src : Logs.src
module Logs : Logs.LOG
val registered_schedules : t list ref
val schedule : t -> unit -> unit
val start : 'a -> 'a Lwt.t
val stop : 'a -> unit Lwt.t
val lifecycle : Container.Lifecycle.t
val register : ?schedules:t list -> unit -> Container.Service.t
OCaml

Innovation. Community. Security.