cron-vir - v1.4.0
    Preparing search index...

    Type Alias CronDefinition<Context, Name>

    A fully defined cron job, ready to be run.

    type CronDefinition<Context, Name extends string> = {
        callback: CronCallback<Context>;
        cronExpression: string | CronExpression;
        jitter: AnyDuration | undefined;
        name: Name;
        timezone: Timezone | undefined;
    }

    Type Parameters

    • Context
    • Name extends string
    Index

    Properties

    cronExpression: string | CronExpression
    jitter: AnyDuration | undefined

    If set, each scheduled execution is delayed by a fresh random amount between 0 and this duration. Useful for de-synchronizing fleets of workers that share the same cron expression.

    name: Name
    timezone: Timezone | undefined