feat: move scheduled tasks to separate project

This commit is contained in:
spiral 2021-10-15 06:27:38 -04:00
parent 362770eef0
commit 3bc451eb4b
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
13 changed files with 1560 additions and 42 deletions

View file

@ -260,7 +260,7 @@ namespace PluralKit.Bot
{
// i'm just going to disable this for now we need to find something nicer
// await _errorMessageService.SendErrorMessage(reportChannel.Value,
// sentryEvent.EventId.ToString());
// sentryEvent.EventId.ToString());
}
}
}
@ -272,9 +272,6 @@ namespace PluralKit.Bot
await UpdateBotStatus();
// Clean up message cache in postgres
await _commandMessageService.CleanupOldMessages();
// Collect some stats, submit them to the metrics backend
await _collector.CollectStats();
await Task.WhenAll(((IMetricsRoot)_metrics).ReportRunner.RunAllAsync());