improve the details and stats of the current batch processing

This commit is contained in:
Tamo
2024-11-20 17:25:55 +01:00
parent d4d8becfa7
commit 21a2264782
17 changed files with 35 additions and 2 deletions

View File

@ -69,9 +69,13 @@ pub fn snapshot_index_scheduler(scheduler: &IndexScheduler) -> String {
snap.push_str(&format!("### Autobatching Enabled = {autobatching_enabled}\n"));
snap.push_str(&format!(
"### Processing batch {:?}:\n",
processing.batch.map(|batch| batch.uid)
processing.batch.as_ref().map(|batch| batch.uid)
));
snap.push_str(&snapshot_bitmap(&processing.processing));
if let Some(ref batch) = processing.batch {
snap.push_str("\n");
snap.push_str(&snapshot_batch(&batch.to_batch()));
}
snap.push_str("\n----------------------------------------------------------------------\n");
snap.push_str("### All Tasks:\n");