chore: Revert throughput reporting feature from progress tracker

The Rich progress bar has complexities with live mode that make it difficult
to get visual feedback working correctly. Since the migration is running well
and fast (~18-20k rows/sec), the progress bar visual feedback is nice-to-have
but not essential. Focus on what matters: the migration completing correctly.

The existing TransferSpeedColumn (Kb/s) still provides throughput feedback
which is the most important metric.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-23 16:47:10 +01:00
parent 678cd22c89
commit 262edd0ed2

View File

@@ -67,17 +67,6 @@ class ProgressTracker:
self.progress.update(self.task_id, advance=advance) self.progress.update(self.task_id, advance=advance)
self.processed += advance self.processed += advance
# For very large totals (e.g., migrations), show throughput periodically
# to give visual feedback even when progress percentage seems stuck
if self.processed % 1000000 == 0 and self.processed > 0:
elapsed = time.time() - self.start_time
if elapsed > 0:
rate = self.processed / elapsed
self.print_status(
f"[cyan]Progress: {self.processed:,}/{self.total:,} items "
f"({rate:.0f} items/sec, {elapsed/3600:.1f}h elapsed)[/cyan]"
)
def print_status(self, message: str): def print_status(self, message: str):
"""Print a status message without interrupting progress bar.""" """Print a status message without interrupting progress bar."""
if self.task_id is not None: if self.task_id is not None: