Skip to content

Commit dac2aa7

Browse files
committed
Add better output when running in non-verbose mode
1 parent 884f2b6 commit dac2aa7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

osu.Server.Queues.ScoreStatisticsProcessor/Commands/Maintenance/DeleteNonPreservedScoresCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ private async Task processCleanupTable(MySqlConnection db, IAmazonS3 s3, Cancell
141141

142142
Console.WriteLine($"Cleaning up {scores.Length} scores with replays...");
143143

144+
int processedCount = 0;
145+
144146
foreach (var score in scores)
145147
{
146148
if (cancellationToken.IsCancellationRequested)
@@ -183,6 +185,9 @@ private async Task processCleanupTable(MySqlConnection db, IAmazonS3 s3, Cancell
183185
// Intentionally leave the temporary table in place for inspection.
184186
throw new Exception("Too many consecutive S3 failures");
185187
}
188+
189+
if (processedCount++ % 100 == 0)
190+
Console.WriteLine($"Processed {processedCount} scores");
186191
}
187192

188193
Console.WriteLine("Cleaning up temporary table...");

0 commit comments

Comments
 (0)