Documentation
¶
Overview ¶
Package maintenance runs the periodic housekeeping pass: it prunes rows that are already invisible (expired caches) or that a retention window explicitly bounds (the LLM debug log, OpenLineage runs).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineageRevalidator ¶
type LineageRevalidator interface {
RevalidateUnresolvedLineage(ctx context.Context, limit int) (revalidated, stillUnknown int, hasMore bool, err error)
RevalidateContradictedColumnClaims(ctx context.Context, limit int) (revalidated, stillUnknown int, hasMore bool, err error)
}
LineageRevalidator re-checks ingested lineage whose endpoints the metadata registry did not know when it was stored, and whose column claims a relation that appeared later contradicts.
Both methods revalidate one bounded batch: limit 0 asks for the implementation's default batch, and hasMore reports whether the batch was full, so a caller can keep calling to drain a larger backlog.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner prunes data with a retention window.
func NewRunner ¶
func NewRunner(stores *store.Store, revalidator LineageRevalidator) *Runner
NewRunner creates a maintenance runner.