Interface EnqueueBatchInput
interface EnqueueBatchInput {
items: EnqueueManyItem[];
metadata?: any;
onComplete?: EnqueueManyItem;
}
items: EnqueueManyItem[];
metadata?: any;
onComplete?: EnqueueManyItem;
}
Index
Properties
Properties
items
Items to enqueue. Mixed kind across items is supported. Same 5,000
per-call cap as enqueueMany.
Optionalmetadata
metadata?: any
Free-form metadata stored on the batch row (admin / dashboard).
OptionalonComplete
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.
Input to
enqueueBatch.itemsis the work;onComplete(optional) fires exactly once when every item reaches a terminal state. The handler receives counts under_eddyq_batchin its payload:{ batchId, total, completed, failed, cancelled, durationMs }.