Add tracking for analyzed traders and add crawling configuration to appsettings.json
This commit is contained in:
@@ -110,6 +110,12 @@ public class TraderAnalyticsWorker : BackgroundService
|
||||
}
|
||||
trader.LastAnalyzedAt = DateTime.UtcNow;
|
||||
await traderRepo.UpdateAsync(trader, ct);
|
||||
|
||||
var statsService = traderScope.ServiceProvider.GetService<IPlatformStatisticsService>();
|
||||
if (statsService != null)
|
||||
{
|
||||
statsService.TrackTradersAnalyzed(trader.Platform, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (activeJob != null && activeJob.TraderId == id)
|
||||
|
||||
Reference in New Issue
Block a user