mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
Exempt a particular client name from heartbeats for testing
(imported from commit 3914130384a7a9854b006405ffd2fe379bbd090d)
This commit is contained in:
@@ -130,6 +130,7 @@ class ClientDescriptor(object):
|
|||||||
self.add_event(dict(type='heartbeat'))
|
self.add_event(dict(type='heartbeat'))
|
||||||
ioloop = tornado.ioloop.IOLoop.instance()
|
ioloop = tornado.ioloop.IOLoop.instance()
|
||||||
heartbeat_time = time.time() + HEARTBEAT_MIN_FREQ_SECS + random.randint(0, 10)
|
heartbeat_time = time.time() + HEARTBEAT_MIN_FREQ_SECS + random.randint(0, 10)
|
||||||
|
if self.client_type.name != 'API: heartbeat test':
|
||||||
self._timeout_handle = ioloop.add_timeout(heartbeat_time, timeout_callback)
|
self._timeout_handle = ioloop.add_timeout(heartbeat_time, timeout_callback)
|
||||||
logging.info("DEBUG: connected handler for queue %s" % (self.event_queue.id,))
|
logging.info("DEBUG: connected handler for queue %s" % (self.event_queue.id,))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user