-ensure Django connection is autocommit enabled, when used from monitor_db
-fix HostScheduler to not crash when there are no ready hosts
-change RebootTask to optionally take a queue entry and pass it to the RepairTask if reboot fails.  This allows jobs to be failed if the pre-verify reboot fails, instead of being left hanging.
-add unit test for RebootTask
-add check for DB inconsistencies to cleanup step.  Currently this just checks for HQEs with active=complete=1.
-when unexpected existing results files are found, email a warning



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2368 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/setup_django_environment.py b/frontend/setup_django_environment.py
index 28d3630..7db92dc 100644
--- a/frontend/setup_django_environment.py
+++ b/frontend/setup_django_environment.py
@@ -3,3 +3,8 @@
 from autotest_lib.frontend import settings
 
 management.setup_environ(settings)
+
+def enable_autocommit():
+    from django.db import connection
+    connection.cursor() # ensure a connection is open
+    connection.connection.autocommit(True)