Caravela.Flow.Supervisor (Caravela v0.9.1)

Copy Markdown View Source

DynamicSupervisor for flow runner processes.

Host applications start this supervisor in their own tree (usually under the application supervisor):

children = [
  # ... other children ...
  Caravela.Flow.Supervisor
]
Supervisor.start_link(children, strategy: :one_for_one)

Once running, Caravela.Flow.start/3 starts runners as supervised children. If the supervisor is not running, start/3 falls back to starting an unsupervised runner — handy for tests and tooling.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(init_arg \\ [])