--- 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,