maintenance

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func (*Runner) Name added in v0.1.2

func (*Runner) Name() string

Name identifies the runner in the server's lifecycle logs.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

Run blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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