ProjectionRun

data class ProjectionRun constructor(val runId: String, val startedAt: Instant, val finishedAt: Instant? = null, val target: String)

A single batch of projection work against a target.

A run groups its ProjectionRecords under a shared runId, giving projection and reconciliation jobs a common run history. This is a plain record; aggregate counts are out of scope.

Constructors

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

Properties

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 ProjectionRecord.runId)

Link copied to clipboard

When the run started

Link copied to clipboard

The projection target this run wrote to (e.g. "graph")

Functions

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

Create a copy marked finished at the given instant.