Anchorage API reference
    Preparing search index...

    The retention purge's own context. advanceRetentionCursor is required here because the layer it feeds requires it: purgeExpiredWorkflowRuns declares advanceCursor non-optional (do-runner/d1-storage.ts), and a purge with nowhere to record its progress rescans the same terminal rows on every alarm. The type keeps a typed host from omitting it; hasRetentionCursorSeam refuses an untyped one under config-error before any purge surface runs, rather than letting the purge report a retention-purge failure.

    interface MaintenancePurgeDutyContext {
        deadlineCursor?: RunDeadlineCursor;
        retentionCursor?: RunRetentionCursor;
        advanceDeadlineCursor?(cursor: RunDeadlineCursor): Promise<void>;
        advanceRetentionCursor(cursor: RunRetentionCursor): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    deadlineCursor?: RunDeadlineCursor
    retentionCursor?: RunRetentionCursor

    Methods