@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface ScheduleRecord

    Persisted state of one durable task.

    interface ScheduleRecord {
        id: string;
        kind: ScheduleKind;
        spec: string;
        nextRunAt: number | null;
        lastRunAt?: number;
        lastStatus?: "ok" | "error";
        fencingToken: number;
        leaseOwner?: string;
        leaseUntil?: number;
        updatedAt: number;
    }
    Index
    id: string
    spec: string

    Cron expression, interval in ms, or one-shot delay in ms (as a string). A cron task with a time zone stores TZ=<zone> <cron> (an opaque string for the store).

    nextRunAt: number | null

    Epoch ms of the next occurrence; null once a one-shot task has run (a tombstone).

    lastRunAt?: number
    lastStatus?: "ok" | "error"
    fencingToken: number

    Bumped by every successful ScheduleStore.claimDue; starts at 0 for a new id. Never goes backwards for an id, even across delete and a new register.

    leaseOwner?: string
    leaseUntil?: number
    updatedAt: number