core-utils
    Preparing search index...

    Request parameters for triggering a notification.

    interface TriggerRequest {
        attempt: number;
        body: TriggerBody;
        expiresAt: Date;
        idempotencyKey: string | TriggerIdempotencyKey;
        key: string;
        keysToRedact?: string[];
        workflowKey?: string;
    }
    Index

    Properties

    attempt: number

    Attempt number for tracing.

    Trigger payload.

    expiresAt: Date

    expiresAt prevents stale notifications across retries by dropping the request when now > expiresAt. If, for example, you're notifying about an event that starts in one hour, you might set this to one hour from now.

    If you're triggering from a background job, don't set this at the call site, set it when you enqueue the job. Otherwise, it gets updated each time the job retries, will always be in the future, and won't prevent stale notifications.

    idempotencyKey: string | TriggerIdempotencyKey
    key: string

    Workflow key.

    Use workflowKey instead.

    keysToRedact?: string[]

    Array of data keys to redact in logs for privacy.

    workflowKey?: string

    Workflow key.