[autotest] Add a tick stat to the scheduler.
BUG=chromium-os:36682
TEST=ran scheduler, saw stat on chromeos-stats
Change-Id: Ic084d23be424e3d8e7e4de32c1d6ffe1e3342728
Reviewed-on: https://gerrit.chromium.org/gerrit/45139
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
Tested-by: Alex Miller <milleral@chromium.org>
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 9d1eced..d1a43d0 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -6,12 +6,11 @@
"""
-import common
import datetime, optparse, os, signal
import sys, time, traceback, urllib
import logging, gc
-from autotest_lib.scheduler import scheduler_logging_config
+import common
from autotest_lib.frontend import setup_django_environment
import django.db
@@ -19,12 +18,14 @@
from autotest_lib.client.common_lib import global_config, logging_manager
from autotest_lib.client.common_lib import host_protections, utils
from autotest_lib.database import database_connection
-from autotest_lib.frontend.afe import models, rpc_utils, readonly_connection
from autotest_lib.frontend.afe import model_attributes
+from autotest_lib.frontend.afe import models, rpc_utils, readonly_connection
from autotest_lib.scheduler import drone_manager, drones, email_manager
from autotest_lib.scheduler import gc_stats, host_scheduler, monitor_db_cleanup
-from autotest_lib.scheduler import status_server, scheduler_config
+from autotest_lib.scheduler import scheduler_logging_config
from autotest_lib.scheduler import scheduler_models
+from autotest_lib.scheduler import status_server, scheduler_config
+
BABYSITTER_PID_FILE_PREFIX = 'monitor_db_babysitter'
PID_FILE_PREFIX = 'monitor_db'
@@ -253,6 +254,8 @@
class BaseDispatcher(object):
+
+
def __init__(self):
self._agents = []
self._last_clean_time = time.time()