CollectorRun

data class CollectorRun constructor(val runId: String, val startedAt: Instant, val finishedAt: Instant? = null, val dryRun: Boolean = false)

A record of a collection run — a single batch of mark-and-sweep work over propositions.

Groups many CollectorRecords under a shared runId. Carries a dryRun flag so non-mutating previews are recorded separately from runs that actually transition propositions. Computed counts are intentionally out of scope; this is a plain record.

Constructors

Link copied to clipboard
constructor(runId: String, startedAt: Instant, finishedAt: Instant? = null, dryRun: Boolean = false)

Properties

Link copied to clipboard
val dryRun: Boolean = false

Whether this run was a non-mutating preview (no propositions changed)

Link copied to clipboard
val finishedAt: Instant? = null

When the run finished, or null if still running

Link copied to clipboard

Unique identifier for this run (matches CollectorRecord.runId)

Link copied to clipboard

When the run started

Functions

Link copied to clipboard
fun finished(at: Instant = Instant.now()): CollectorRun

Create a copy marked finished at the given instant.