Interface EnqueueBatchInput

    Input to enqueueBatch. items is the work; onComplete (optional) fires exactly once when every item reaches a terminal state. The handler receives counts under _eddyq_batch in its payload: { batchId, total, completed, failed, cancelled, durationMs }.

    interface EnqueueBatchInput {
        items: EnqueueManyItem[];
        metadata?: any;
        onComplete?: EnqueueManyItem;
    }
    Index

    Properties

    Items to enqueue. Mixed kind across items is supported. Same 5,000 per-call cap as enqueueMany.

    metadata?: any

    Free-form metadata stored on the batch row (admin / dashboard).

    onComplete?: EnqueueManyItem

    Optional callback to enqueue when every item reaches terminal state. Fires regardless of mix of success / terminal-failure / cancellation; branch on the counts in the payload's _eddyq_batch envelope.