> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nuabase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Asynchronous Jobs

> Queue long-running batch work for later consumption

For long-running batch work, you can queue the job and consume results later via webhooks or polling.

```typescript theme={null}
// Assuming 'enrichLeads' is an array function defined via createArrayFn
await enrichLeads.queue(leads, 'id');
```

## Output

The operation returns a JSON response containing the ID of the created request record (`llm_request` ID).

```json theme={null}
{
  "id": "req_..." 
}
```
