Interface Schedule

    A schedule registered via addSchedule (cron) or addIntervalSchedule ({ every: ms }). Exactly one of cronExpr and intervalMs is set; the DB CHECK on Postgres and the stored entry on Redis both enforce this.

    interface Schedule {
        cronExpr?: string;
        enabled: boolean;
        intervalMs?: number;
        kind: string;
        lastRunAt?: string;
        maxAttempts: number;
        name: string;
        nextRunAt: string;
        payload: any;
        priority: number;
        queue: string;
    }
    Index

    Properties

    cronExpr?: string

    Cron expression. null when the row is interval-driven.

    enabled: boolean
    intervalMs?: number

    Fixed-interval cadence in milliseconds. null when cron-driven.

    kind: string
    lastRunAt?: string
    maxAttempts: number
    name: string
    nextRunAt: string
    payload: any
    priority: number
    queue: string

    Named queue the fired job lands on.