events: don't include task uid in task metric (#5595)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-05-12 20:03:52 +02:00 committed by GitHub
parent ec78e56fbd
commit a032fd529b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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