mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Expose the call trace in the batch stats
This commit is contained in:
parent
e9add14189
commit
3ff1de0a21
6 changed files with 10 additions and 6 deletions
|
@ -339,7 +339,9 @@ impl IndexScheduler {
|
|||
|
||||
// We must re-add the canceled task so they're part of the same batch.
|
||||
ids |= canceled;
|
||||
eprintln!("{:#?}", progress.accumulated_durations());
|
||||
let durations = progress.accumulated_durations();
|
||||
processing_batch.stats.call_trace =
|
||||
durations.into_iter().map(|(k, v)| (k, v.into())).collect();
|
||||
self.queue.write_batch(&mut wtxn, processing_batch, &ids)?;
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue