Skip to content

Commit cfde271

Browse files
V1.16: Update /batches response (#3314)
--------- Co-authored-by: Mubelotix <[email protected]>
1 parent 4280a4d commit cfde271

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

reference/api/batches.mdx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ The `/batches` route gives information about the progress of batches of [asynchr
4848
},
4949
"progressTrace": { },
5050
"writeChannelCongestion": { },
51-
"internalDatabaseSizes": { }
51+
"internalDatabaseSizes": { },
52+
"embedderRequests": {
53+
"total": 12,
54+
"failed": 5,
55+
"lastError": "runtime error: received internal error HTTP 500 from embedding server\n - server replied with `{\"error\":\"Service Unavailable\"}`"
56+
}
5257
},
5358
"duration": "PT0.250518S",
5459
"startedAt": "2024-12-10T15:20:30.18182Z",
@@ -123,6 +128,12 @@ Object containing information on write operations computed during indexing. Can
123128

124129
Size of each internal database, including by how much it changed after a batch was processed.
125130

131+
#### `embedderRequests`
132+
133+
Object containing the total number of requests made to the embedder. Also displays the number of failed requests, if any, along with the error message for the most recent failure.
134+
135+
Only present in batches with at least one task querying an embedder. This field continuously updates until Meilisearch finishes processing the batch.
136+
126137
### `duration`
127138

128139
**Type**: String<br />
@@ -219,7 +230,12 @@ For example, `?uids=0` returns a batch containing the task with a `taskUid` equa
219230
},
220231
"progressTrace": { },
221232
"writeChannelCongestion": { },
222-
"internalDatabaseSizes": { }
233+
"internalDatabaseSizes": { },
234+
"embedderRequests": {
235+
"total": 12,
236+
"failed": 5,
237+
"lastError": "runtime error: received internal error HTTP 500 from embedding server\n - server replied with `{\"error\":\"Service Unavailable\"}`"
238+
}
223239
},
224240
"duration": "PT0.110083S",
225241
"startedAt": "2024-12-10T15:49:04.995321Z",
@@ -270,6 +286,14 @@ Get a single batch.
270286
},
271287
"indexUids": {
272288
"INDEX_NAME": 1
289+
},
290+
"progressTrace": { },
291+
"writeChannelCongestion": { },
292+
"internalDatabaseSizes": { },
293+
"embedderRequests": {
294+
"total": 12,
295+
"failed": 5,
296+
"lastError": "runtime error: received internal error HTTP 500 from embedding server\n - server replied with `{\"error\":\"Service Unavailable\"}`"
273297
}
274298
},
275299
"duration": "PT0.364788S",

0 commit comments

Comments
 (0)