SaltDns.Knot.Scheduler (Salt v1.0.0)

The body of the periodic reconcile: asks the writer of every zone for a full reconcile, a few at a time (config :salt_dns, SaltDns.Knot.Scheduler, concurrency: 4). SaltDns.Knot.ReconcileWorker runs it from Oban.

Rebuilding Knot from an empty configuration is the same operation: every zone is missing, so every zone is created and filled.

Summary

Functions

Reconciles every zone now. Returns the number of zones, and the failures as {zone_id, reason}. Telemetry [:salt_dns, :knot, :sweep] carries both.

Functions

run_once(opts \\ [])

@spec run_once(keyword()) :: %{
  zones: non_neg_integer(),
  failed: [{integer(), term()}]
}

Reconciles every zone now. Returns the number of zones, and the failures as {zone_id, reason}. Telemetry [:salt_dns, :knot, :sweep] carries both.