don't reboot hosts when aborting inactive jobs.
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2393 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 7b77f45..5a12845 100644
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -2060,7 +2060,7 @@
tasks = [abort_task]
host = self.get_host()
- if host:
+ if self.active and host:
cleanup_task = CleanupTask(host=host)
verify_task = VerifyTask(host=host)
# just to make sure this host does not get taken away