Fleet.Supervisor (fleet v0.1.0)

Copy Markdown View Source

Top-level supervisor managing Fleet queues, Broadway pipelines, and the BEAM ticker.

Example Configuration

children = [
  MyApp.Repo,
  {Fleet,
   repo: MyApp.Repo,
   run_ticker: true,
   queues: [
     default: [concurrency: 10],
     mailers: [concurrency: 20, poll_interval: 50]
   ]}
]

Summary

Functions

Returns a child specification using :name as default id to allow multiple instances.

Starts the Fleet supervision tree.

Functions

child_spec(init_arg)

Returns a child specification using :name as default id to allow multiple instances.

start_link(opts)

Starts the Fleet supervision tree.