runsOfRoot

open override fun runsOfRoot(contextIdValue: String, rootRunId: String, limit: Int, since: Instant?): List<ExtractionRun>

Every run in one lineage: those whose ExtractionRunLineage.rootRunRef is rootRunId, including the root itself.

This is the read the denormalized root reference exists for. The root is fixed when a lineage is minted and can never drift, so a whole lineage is one indexed read on one property instead of a chain walk a hop at a time.

Return

At most limit runs of that lineage, newest first.

Parameters

contextIdValue

The tenant.

rootRunId

The root run's id.

limit

The most runs to return. Must be positive.

since

When non-null, only runs started at or after this instant.

Throws

if limit is not positive.