[autotest] Report DUT repair status to monarch.

At the end of each special task, if the task knows whether the
target DUT was working or broken, post that information using
ts_mon.

BUG=None
TEST=run repair and verify jobs in a local instance

Change-Id: I713a8584eb66820d890e3733c8790b421720672a
Reviewed-on: https://chromium-review.googlesource.com/345972
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index 354f44e..d520a40 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -1,4 +1,7 @@
 #!/usr/bin/python
+
+#pylint: disable=C0111
+
 """
 Autotest scheduler
 """
@@ -16,6 +19,7 @@
 from autotest_lib.frontend import setup_django_environment
 
 import django.db
+from chromite.lib import ts_mon_config
 
 from autotest_lib.client.common_lib import control_data
 from autotest_lib.client.common_lib import global_config
@@ -167,6 +171,8 @@
     # Start the thread to report metadata.
     metadata_reporter.start()
 
+    ts_mon_config.SetupTsMonGlobalState('autotest_scheduler')
+
     try:
         initialize()
         dispatcher = Dispatcher()