mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
make the processing tasks as processing in a batch
This commit is contained in:
parent
bf742d81cf
commit
cbcf6c9ba3
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue