From a819fc1df86721eda36eee89d0235c89b3159d6b Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 7 Sep 2021 11:28:35 -0400 Subject: Add user specified CI file entry Signed-off-by: Sawyer Bergeron Change-Id: Ia920130612da8fcde9d1a0d5dde7861904857162 Signed-off-by: Sawyer Bergeron --- src/dashboard/tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/dashboard/tasks.py') diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py index 3f88449..93e6a22 100644 --- a/src/dashboard/tasks.py +++ b/src/dashboard/tasks.py @@ -81,11 +81,15 @@ def free_hosts(): ).filter( end__lt=timezone.now(), job__complete=True, - resource__isnull=False + complete=False, + resource__isnull=False, ) for booking in bookings: ResourceManager.getInstance().releaseResourceBundle(booking.resource) + booking.complete = True + print("Booking", booking.id, "is now completed") + booking.save() @shared_task -- cgit 1.2.3-korg