make the processing tasks as processing in a batch

This commit is contained in:
Tamo 2024-12-04 14:48:48 +01:00
parent bf742d81cf
commit cbcf6c9ba3
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
2 changed files with 2 additions and 2 deletions

View File

@ -4335,7 +4335,7 @@ mod tests {
"stats": {
"totalNbTasks": 2,
"status": {
"enqueued": 2
"processing": 2
},
"types": {
"indexCreation": 2

View File

@ -67,7 +67,7 @@ impl ProcessingBatch {
task.batch_uid = Some(self.uid);
// 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.
*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.stats.types.entry(task.kind.as_kind()).or_default() += 1;