events: fix authentik_system_tasks metric status label (#6252)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-07-13 16:24:13 +02:00 committed by GitHub
parent b0bce60e5e
commit 5ca65003f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ class TaskInfo:
GAUGE_TASKS.labels(
task_name=self.task_name.split(":")[0],
task_uid=self.result.uid or "",
status=self.result.status.value,
status=self.result.status.name.lower(),
).set(duration)
def save(self, timeout_hours=6):