Services.CommitIndexer (fnord v0.9.24)

View Source

Silent background indexer for git commits.

The worker mirrors the existing file and conversation indexers: it processes one commit at a time, rechecks the project index after each completion, and exits cleanly when there is no more work or when the ask session shuts down.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

state()

@type state() :: %{
  project: Store.Project.t() | nil,
  task: pid() | nil,
  mon_ref: reference() | nil,
  impl: module(),
  candidates: [map()]
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

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

stop(pid)

@spec stop(pid() | any()) :: :ok