Snodo.Extensions.Tasks.Store.SQLite.Supervisor (snodo_tasks_sqlite v0.4.1)

Copy Markdown View Source

Supervises the per-Repo writer queues that SQLite store mutations take their write slot from.

The :snodo_tasks_sqlite application starts this supervisor, so nothing is needed when the application runs. An application that lists :snodo_tasks_sqlite under :included_applications, or starts the VM without starting applications, must start it itself, once per node:

children = [
  Snodo.Extensions.Tasks.Store.SQLite.Supervisor,
  MyApp.Repo
]

Without it, every store mutation returns {:error, {:application_not_started, :snodo_tasks_sqlite}}.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the writer-queue supervisor. It registers fixed local names.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()

Starts the writer-queue supervisor. It registers fixed local names.