Beignet API reference
    Preparing search index...

    Interface InlineScheduleRunnerOptions<Ctx>

    Options for the inline schedule runner.

    interface InlineScheduleRunnerOptions<Ctx> {
        ctx?: Ctx | (() => MaybePromise<Ctx>);
        now?: () => Date;
        onError?<S extends ScheduleDef<string, StandardSchema, Ctx>>(
            args: ScheduleErrorArgs<S>,
        ): MaybePromise<void>;
        onHookError?<S extends ScheduleDef<string, StandardSchema, Ctx>>(
            args: ScheduleHookErrorArgs<S>,
        ): MaybePromise<void>;
        onStart?<S extends ScheduleDef<string, StandardSchema, Ctx>>(
            args: ScheduleLifecycleArgs<S>,
        ): MaybePromise<void>;
        onSuccess?<S extends ScheduleDef<string, StandardSchema, Ctx>>(
            args: ScheduleLifecycleArgs<S>,
        ): MaybePromise<void>;
    }

    Type Parameters

    • Ctx
    Index

    Properties

    ctx?: Ctx | (() => MaybePromise<Ctx>)

    Static schedule context or factory evaluated for each run.

    now?: () => Date

    Clock used when run timestamps are not provided.

    Methods