Signed-off-by: Dale Curtis <dalecur...@google.com> --- scheduler/monitor_db.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py index c5abed3..10bc679 100755 --- a/scheduler/monitor_db.py +++ b/scheduler/monitor_db.py @@ -260,7 +260,7 @@ class SchedulerError(Exception): """Raised by HostScheduler when an inconsistent state occurs."""
-class HostScheduler(metahost_scheduler.HostSchedulingUtility): +class BaseHostScheduler(metahost_scheduler.HostSchedulingUtility): """Handles the logic for choosing when to run jobs and on which hosts. This class makes several queries to the database on each tick, building up @@ -663,6 +663,14 @@ class HostScheduler(metahost_scheduler.HostSchedulingUtility): return [] +site_host_scheduler = utils.import_site_class( + __file__, "autotest_lib.scheduler.site_host_scheduler", + "site_host_scheduler", BaseHostScheduler) + +class HostScheduler(site_host_scheduler): + pass + + class Dispatcher(object): def __init__(self): self._agents = [] -- 1.7.3.1 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest