From f3035c57394b845268bf2f0b25f283662735271a Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Wed, 4 Apr 2012 14:32:31 -0400 Subject: [PATCH] monitor.py killing softly --- zipline/monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zipline/monitor.py b/zipline/monitor.py index 88a73269..0e007d3a 100644 --- a/zipline/monitor.py +++ b/zipline/monitor.py @@ -256,14 +256,14 @@ class Controller(object): def send_hardkill(self): kill_frame = CONTROL_FRAME( CONTROL_PROTOCOL.KILL, - None + '' ) self.pub.send(kill_frame) def send_softkill(self): soft_frame = CONTROL_FRAME( CONTROL_PROTOCOL.KILL, - None + '' ) self.pub.send(soft_frame) @@ -473,6 +473,7 @@ class Controller(object): self.state = CONTROL_STATES.TERMINATE self.logging.info('[Controller] Soft Shutdown') + self.send_softkill() #for asoc in self.associated: #asoc.close()