aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r--src/dashboard/tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py
index 8554f6c..3f88449 100644
--- a/src/dashboard/tasks.py
+++ b/src/dashboard/tasks.py
@@ -83,8 +83,9 @@ def free_hosts():
job__complete=True,
resource__isnull=False
)
+
for booking in bookings:
- ResourceManager.getInstance().deleteResourceBundle(booking.resource)
+ ResourceManager.getInstance().releaseResourceBundle(booking.resource)
@shared_task