Permalink
Browse files

Add pulse heartbeat

  • Loading branch information...
1 parent 5b71483 commit 17dcc45db49c823c659a0064d778a1cfb4590676 @jonallengriffin jonallengriffin committed Apr 4, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +2 −1 synkamatic/api.py
View
@@ -5,7 +5,7 @@
import os
version = "0.0"
-dependencies = ['MozillaPulse']
+dependencies = ['MozillaPulse >= 0.61']
# allow use of setuptools/distribute or distutils
kw = {}
View
@@ -35,8 +35,9 @@ def start_pulse_listener(self):
"""Start listening to pulse messages. This method will never return.
"""
- pulse = CodeConsumer(applabel='synkamatic|%s' % socket.gethostname())
treewords = self.tree.replace('-', '.')
+ pulse = CodeConsumer(applabel='synkamatic|%s' % socket.gethostname(),
+ heartbeat=True)
pulse.configure(topic="hg.commit.#.%s" % treewords,
callback=self.on_pulse_message,
durable=False)

0 comments on commit 17dcc45

Please sign in to comment.