aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard/tasks.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:37:23 -0800
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:40:30 -0800
commit03097ee368e48395c47a33742fa72f5b920d3e65 (patch)
tree13a37017171a1495d2252b539d597768af70927d /src/dashboard/tasks.py
parent2a82d24ab1b57fe0254345997af211bc139c4629 (diff)
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 <tbramwell@linuxfoundation.org>
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r--src/dashboard/tasks.py2
1 files changed, 0 insertions, 2 deletions
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