Beignet API reference
    Preparing search index...

    Interface InlineJobDispatcherOptions<Ctx>

    Options for the inline job dispatcher.

    interface InlineJobDispatcherOptions<Ctx> {
        ctx?: Ctx | (() => MaybePromise<Ctx>);
        onError?: (
            error: unknown,
            job: JobDef<string, StandardSchema, Ctx>,
        ) => void;
    }

    Type Parameters

    • Ctx
    Index

    Properties

    Properties

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

    Static job context or factory evaluated for each dispatched job.

    onError?: (error: unknown, job: JobDef<string, StandardSchema, Ctx>) => void

    Called when a dispatched inline job fails. When omitted, errors are rethrown to the caller.