perf: job executed fail api

pull/9221/head
feng 2022-12-20 10:35:05 +08:00
parent e82eb8f3d1
commit cdb89ee2f2
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class DatesLoginMetricMixin:
@lazyproperty @lazyproperty
def jobs_executed_failed_amount(self): def jobs_executed_failed_amount(self):
return self.jobs_executed_queryset.objects.filter( return self.jobs_executed_queryset.filter(
status=JobStatus.failed).count() status=JobStatus.failed).count()
@lazyproperty @lazyproperty