Sync / foldkit-durable

TrackedCursor

interface · packages/durable/src/journal.ts:279

interface TrackedCursor {
  readonly epoch: string
  readonly cursor: Cursor
  readonly attempts: number
  readonly firstFailedAt: Option.Option<number>
  readonly failedAt: Option.Option<number>
}

Where a named piece of work over one document has reached, in the document's current epoch: every commit at or before cursor was handled or set aside. A lower bound over the effect ledger, so set back it costs ledger reads, never a second run.

Members

TrackedCursor.epoch

property · packages/durable/src/journal.ts:281

readonly epoch: string

The document's epoch the cursor counts in: what advance and stalled name.

TrackedCursor.cursor

property · packages/durable/src/journal.ts:282

readonly cursor: Cursor

TrackedCursor.attempts

property · packages/durable/src/journal.ts:284

readonly attempts: number

How many runs have failed at the commit after cursor since it last moved.

TrackedCursor.firstFailedAt

property · packages/durable/src/journal.ts:286

readonly firstFailedAt: Option.Option<number>

When the first of those failed, in ms since the Unix epoch.

TrackedCursor.failedAt

property · packages/durable/src/journal.ts:288

readonly failedAt: Option.Option<number>

When the last of those failed.