LeaseReconciliation

data class LeaseReconciliation(val orphaned: List<LeaseReconciliation.Orphan>, val unknown: List<LeaseId>)

What LocalHeddle.reconcileLeases found: the two ways the caller's running work and the engine's open leases can disagree. Both lists are in LeaseId order.

Constructors

Link copied to clipboard
constructor(orphaned: List<LeaseReconciliation.Orphan>, unknown: List<LeaseId>)

Types

Link copied to clipboard
data class Orphan(val lease: Lease, val elapsed: Long)

An open lease whose work is no longer running, and how long it ran.

Properties

Link copied to clipboard

every open lease the caller did not name as live: work that is no longer running, and was never completed or cancelled.

Link copied to clipboard

every id the caller named as live that the engine holds no open lease for, from this epoch or another.