From 98026dfc7da9c208d66700ca4c537e49363fc260 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 16 Mar 2022 14:28:43 -0400 Subject: [PATCH] fix: actually report metrics to influxdb in scheduled tasks runner --- PluralKit.ScheduledTasks/TaskHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.ScheduledTasks/TaskHandler.cs b/PluralKit.ScheduledTasks/TaskHandler.cs index c4767e6a..cff18042 100644 --- a/PluralKit.ScheduledTasks/TaskHandler.cs +++ b/PluralKit.ScheduledTasks/TaskHandler.cs @@ -96,6 +96,9 @@ public class TaskHandler // Other shiz _metrics.Measure.Gauge.SetValue(Metrics.WebhookCacheSize, stats.Sum(x => x.WebhookCacheSize)); + + await Task.WhenAll(((IMetricsRoot)_metrics).ReportRunner.RunAllAsync()); + _logger.Debug("Submitted metrics to backend"); } private async Task CleanupOldMessages()