summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-12-19 18:25:32 (GMT)
committerJohn (J5) Palmieri <johnp@redhat.com>2011-12-19 18:26:11 (GMT)
commit90ca6632d3b2830db7aeb2ab35b1bc31148904da (patch)
tree76004ba11d6767e8594ceaf9d3bbb72cea4d7176
parent084419624983bd51b87ac05b4571656c897ca858 (diff)
downloadfedoracommunity-90ca6632d3b2830db7aeb2ab35b1bc31148904da.zip
fedoracommunity-90ca6632d3b2830db7aeb2ab35b1bc31148904da.tar.gz
fedoracommunity-90ca6632d3b2830db7aeb2ab35b1bc31148904da.tar.xz
fast heartbeat monitoring for proxy servers
-rw-r--r--fedoracommunity/controllers/root.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fedoracommunity/controllers/root.py b/fedoracommunity/controllers/root.py
index 247b72b..c75b6ca 100644
--- a/fedoracommunity/controllers/root.py
+++ b/fedoracommunity/controllers/root.py
@@ -74,6 +74,13 @@ class RootController(BaseController):
return {'widget': moksha.utils.get_widget(widget_name),
'args': list(args), 'kwds': kwds}
+ @expose()
+ def _heartbeat(self, *args, **kwds):
+ '''Fast heartbeat monitor so proxy servers know if we are runnining'''
+ # TODO: perhaps we want to monitor our own internal functions and
+ # send back an error if we are not completely up and running
+ return "Still running"
+
@expose('mako:fedoracommunity.templates.chrome')
def _default(self, *args, **kwds):
'''for anything which does not hit a controller we assume is a package