mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-26 21:27:28 +01:00
make the processing tasks as processing in a batch
This commit is contained in:
parent
bf742d81cf
commit
cbcf6c9ba3
@ -4335,7 +4335,7 @@ mod tests {
|
|||||||
"stats": {
|
"stats": {
|
||||||
"totalNbTasks": 2,
|
"totalNbTasks": 2,
|
||||||
"status": {
|
"status": {
|
||||||
"enqueued": 2
|
"processing": 2
|
||||||
},
|
},
|
||||||
"types": {
|
"types": {
|
||||||
"indexCreation": 2
|
"indexCreation": 2
|
||||||
|
@ -67,7 +67,7 @@ impl ProcessingBatch {
|
|||||||
task.batch_uid = Some(self.uid);
|
task.batch_uid = Some(self.uid);
|
||||||
// We don't store the statuses in the map since they're all enqueued but we must
|
// We don't store the statuses in the map since they're all enqueued but we must
|
||||||
// still store them in the stats since that can be displayed.
|
// still store them in the stats since that can be displayed.
|
||||||
*self.stats.status.entry(task.status).or_default() += 1;
|
*self.stats.status.entry(Status::Processing).or_default() += 1;
|
||||||
|
|
||||||
self.kinds.insert(task.kind.as_kind());
|
self.kinds.insert(task.kind.as_kind());
|
||||||
*self.stats.types.entry(task.kind.as_kind()).or_default() += 1;
|
*self.stats.types.entry(task.kind.as_kind()).or_default() += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user