Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add pulse heartbeat

  • Loading branch information...
commit 17dcc45db49c823c659a0064d778a1cfb4590676 1 parent 5b71483
@jonallengriffin jonallengriffin authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  setup.py
  2. +2 −1  synkamatic/api.py
View
2  setup.py
@@ -5,7 +5,7 @@
import os
version = "0.0"
-dependencies = ['MozillaPulse']
+dependencies = ['MozillaPulse >= 0.61']
# allow use of setuptools/distribute or distutils
kw = {}
View
3  synkamatic/api.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.