[autotest] suite-scheduler sanity check should not rely on django
CL:223811 makes suite-scheduler depend on django. This
breaks the sanity check. This CL removes the dependency.
TEST=./site_utils/suite_scheduler/suite_scheduler.py --sanity
TEST= Run scheduler
BUG=chromium:474671
Change-Id: Ie9375ffc4b340949f62d6a4efe46625175ce06ba
Reviewed-on: https://chromium-review.googlesource.com/288396
Reviewed-by: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
diff --git a/site_utils/suite_scheduler/task.py b/site_utils/suite_scheduler/task.py
index a4a54d3..9700a06 100644
--- a/site_utils/suite_scheduler/task.py
+++ b/site_utils/suite_scheduler/task.py
@@ -12,8 +12,8 @@
from constants import Labels
import common
+from autotest_lib.server import utils as server_utils
from autotest_lib.server.cros.dynamic_suite import constants
-from autotest_lib.scheduler import scheduler_lib
class MalformedConfigEntry(Exception):
@@ -44,7 +44,7 @@
scheduler's ini file.
"""
- __metaclass__ = scheduler_lib.Singleton
+ __metaclass__ = server_utils.Singleton
# True if suite_scheduler is running for sanity check. When it's set to
# True, the code won't make gsutil call to get the actual tot milestone to