mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-10 17:05:48 +08:00
monitor.py killing softly
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user