aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard/tasks.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-11-07 22:05:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-07 22:05:28 +0000
commit6a90796de1df8d74c79415c39c867ffe6cd80fd0 (patch)
treee192b4149cb535da0a8b928be65f2529a250b5ca /src/dashboard/tasks.py
parentc589b15fbf1b5f386d0d6af453d2388e1a0ee1ad (diff)
parent7b15aed77c6675286fd75b8832af58c992717ef9 (diff)
Merge "Rewrite Notification subsystem"
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r--src/dashboard/tasks.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py
index 0f7af1c..d4b4189 100644
--- a/src/dashboard/tasks.py
+++ b/src/dashboard/tasks.py
@@ -13,18 +13,12 @@ from celery import shared_task
from django.utils import timezone
from django.db.models import Q
from booking.models import Booking
-from notifier.manager import *
-from notifier.models import *
+from notifier.manager import NotificationHandler
from api.models import *
from resource_inventory.resource_manager import ResourceManager
@shared_task
-def conjure_aggregate_notifiers():
- NotifyPeriodic.task()
-
-
-@shared_task
def booking_poll():
def cleanup_hardware(qs):
for hostrelation in qs:
@@ -90,6 +84,7 @@ def booking_poll():
cleanup_access(AccessRelation.objects.filter(job=job))
job.complete = True
job.save()
+ NotificationHandler.notify_booking_end(booking)
@shared_task