From: Trevor Bramwell Date: Fri, 2 Feb 2018 21:37:23 +0000 (-0800) Subject: Remove the Booking Notification Cleanup Task X-Git-Tag: 2.0.99~219^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=03097ee368e48395c47a33742fa72f5b920d3e65;p=laas.git Remove the Booking Notification Cleanup Task These are created by the notification django-app, but that app is no longer used or installed. This change should also keep the worker container from continuously restarting. Change-Id: Ifbdf15e7011375f3818179048ec6be4a83a53917 Signed-off-by: Trevor Bramwell --- diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py index c5ef505..aab3345 100644 --- a/src/dashboard/tasks.py +++ b/src/dashboard/tasks.py @@ -14,11 +14,9 @@ from celery import shared_task from django.utils import timezone from jenkins.models import JenkinsStatistic -from notification.models import BookingNotification @shared_task def database_cleanup(): now = timezone.now() JenkinsStatistic.objects.filter(timestamp__lt=now - timedelta(weeks=4)).delete() - BookingNotification.objects.filter(submit_time__lt=now - timedelta(weeks=4)).delete() \ No newline at end of file