From 4143d3fe285652af1cb3c9141fdfd4701e736be9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 6 Dec 2021 10:13:30 +0100 Subject: [PATCH] events: don't set metrics on import Signed-off-by: Jens Langhammer --- authentik/events/monitored_tasks.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/authentik/events/monitored_tasks.py b/authentik/events/monitored_tasks.py index 138b4070c..d7273e0bf 100644 --- a/authentik/events/monitored_tasks.py +++ b/authentik/events/monitored_tasks.py @@ -210,7 +210,3 @@ class PrefilledMonitoredTask(MonitoredTask): def run(self, *args, **kwargs): raise NotImplementedError - - -for task in TaskInfo.all().values(): - task.set_prom_metrics()