forked from GithubBackups/healthchecks
Quicker prunenotifications, skip checks with low n_pings values.
This commit is contained in:
parent
a144bc762d
commit
7ecd0b606d
@ -10,7 +10,7 @@ class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
total = 0
|
||||
|
||||
q = Check.objects.filter(n_pings__gt=0)
|
||||
q = Check.objects.filter(n_pings__gt=100)
|
||||
q = q.annotate(min_ping_date=Min("ping__created"))
|
||||
for check in q:
|
||||
qq = Notification.objects.filter(owner_id=check.id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user