maintenance

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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, err error)
	RevalidateContradictedColumnClaims(ctx context.Context, limit int) (revalidated, stillUnknown int, err error)
}

Runner prunes data with a retention window. 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.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(stores *store.Store, revalidator LineageRevalidator) *Runner

NewRunner creates a maintenance runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, wg *sync.WaitGroup)

Run blocks until ctx is cancelled, then signals wg.Done().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL