- Retrieve the number of pending items for a specific vectorizer
- Allow for more granular monitoring of individual vectorizer queues
Samples
Using vectorizer name
Using vectorizer ID
Get exact count
A queue with a very large number of items may be slow to count. The optionalexact_count parameter is defaulted to false. When false, the count is limited. An exact count is returned if the queue has 10,000 or fewer items, and returns 9223372036854775807 (the max bigint value) if there are greater than 10,000 items.
To get an exact count, regardless of queue size:
Arguments
ai.vectorizer_queue_pending can be called in two ways:
With vectorizer name (recommended)
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| name | text | - | ✔ | The name of the vectorizer you want to check |
| exact_count | bool | false | ✖ | If true, return exact count. If false, capped at 10,000 |
With vectorizer ID
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| vectorizer_id | int | - | ✔ | The identifier of the vectorizer you want to check |
| exact_count | bool | false | ✖ | If true, return exact count. If false, capped at 10,000 |