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 ¶
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.
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. |