src/pyams_scheduler/process.py
changeset 43 aa374e033e84
parent 41 0b31d2492f15
child 54 9f88cbe85980
--- a/src/pyams_scheduler/process.py	Sun Jan 14 14:48:58 2018 +0100
+++ b/src/pyams_scheduler/process.py	Sun Jan 14 14:49:24 2018 +0100
@@ -169,6 +169,13 @@
 class SchedulerHandler(object):
     """Scheduler handler"""
 
+    def test(self, settings):
+        messages = [
+            'OK - Tasks scheduler ready to handle requests.',
+            '{0} currently running jobs'.format(len(self.process.scheduler.get_jobs()))
+        ]
+        return [200, '\n'.join(messages)]
+
     def get_jobs(self, settings):
         scheduler = self.process.scheduler
         return [200,