runner

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: 6 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 runner holds the shared lifecycle of the server's background runners.

A runner is a long-lived loop that the server starts after its store and subsystems are ready and stops by cancelling the runner context. The server starts every runner through Go, which gives each one a name for logs and a panic boundary: a bug in one background loop is logged with a stack instead of taking the process (and every other runner) down with it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

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

Go starts r in its own goroutine and adds it to the server's runner WaitGroup, with a panic boundary: a bug in one background loop is logged with its name and stack instead of taking the process (and the other runners) down.

It also owns the runner's lifecycle log line: one when the loop starts and one when it stops with the name and how long it ran, so an operator can tell from the log whether a runner ever started and when it last stopped.

func Jitter

func Jitter(interval time.Duration) time.Duration

Jitter returns interval plus a random 0–10%. Restarting a process starts every runner at once, and their fixed intervals would otherwise keep them aligned forever: jitter spreads the periodic passes (and the load they put on the targets and the store) instead of synchronizing them.

Types

type Runner

type Runner interface {
	// Name identifies the runner in logs and is stable across releases
	// (for example "schemasync").
	Name() string
	// Run executes the loop until ctx is cancelled. Implementations should
	// return when ctx is done instead of running a final unbounded pass.
	Run(ctx context.Context)
}

Runner is one background loop. Run blocks until ctx is cancelled.

Directories

Path Synopsis
Package lineageanalyzer is a runner that analyzes SQL definitions to produce column-level lineage.
Package lineageanalyzer is a runner that analyzes SQL definitions to produce column-level lineage.
Package lineagevalidation re-checks ingested lineage whose endpoints the metadata registry did not know when it was stored.
Package lineagevalidation re-checks ingested lineage whose endpoints the metadata registry did not know when it was stored.
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).
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).
Package schemasync is a runner that synchronize database schemas.
Package schemasync is a runner that synchronize database schemas.

Jump to

Keyboard shortcuts

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