GenDurable.Supervisor (gen_durable v0.1.0)

Copy Markdown View Source

Top-level engine supervisor. Started by the host (Oban-style) as {GenDurable, opts} in their own supervision tree.

Options

  • :repo — the host's Ecto.Repo (required).
  • :fsms — FSM modules to register (default []).
  • :queues — keyword list of queue_name => concurrency (default [default: 10]).
  • :lease_ttl, :heartbeat_interval, :poll_interval, :reap_interval — timings in ms (Balanced defaults: 60_000 / 20_000 / 1_000 / 30_000).

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)